Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 102307 Details for
Bug 155624
kde-base/umbrello exports to SQL incorrectly
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch for correct SQL export
3.5.5-sql-export.patch (text/plain), 1.43 KB, created by
Alexey Parshin
on 2006-11-18 16:12:20 UTC
(
hide
)
Description:
Patch for correct SQL export
Filename:
MIME Type:
Creator:
Alexey Parshin
Created:
2006-11-18 16:12:20 UTC
Size:
1.43 KB
patch
obsolete
>diff -uNr kdesdk-3.5.5.orig/umbrello/umbrello/codegenerators/sqlwriter.cpp kdesdk-3.5.5/umbrello/umbrello/codegenerators/sqlwriter.cpp >--- kdesdk-3.5.5.orig/umbrello/umbrello/codegenerators/sqlwriter.cpp 2006-07-22 18:11:57.000000000 +1000 >+++ kdesdk-3.5.5/umbrello/umbrello/codegenerators/sqlwriter.cpp 2006-11-19 10:13:22.000000000 +1100 >@@ -86,14 +86,15 @@ > UMLAssociationList aggregations = c->getAggregations(); > if( forceSections() || !aggregations.isEmpty() ) { > for(UMLAssociation* a = aggregations.first(); a; a = aggregations.next()) { >- if( a->getObject(Uml::A)->getID() != c->getID() ) { >- >- sql << m_indentation << "," << m_endl << m_indentation >- << "CONSTRAINT " << a->getName() << " FOREIGN KEY (" >- << a->getRoleName(Uml::B) << ") REFERENCES " >- << a->getObject(Uml::A)->getName() >- << " (" << a->getRoleName(Uml::A) << ")"; >- } >+ //if( a->getObject(Uml::A)->getID() != c->getID() ) { >+ if ( a->getRoleName(Uml::B) != "" && a->getRoleName(Uml::B) != "") { >+ sql << m_indentation << "," << m_endl << m_indentation >+ << "CONSTRAINT " << a->getName() << " FOREIGN KEY (" >+ << a->getRoleName(Uml::B) << ") REFERENCES " >+ << a->getObject(Uml::A)->getName() >+ << " (" << a->getRoleName(Uml::A) << ")"; >+ } >+ //} > } > } >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 155624
:
102307
|
102308
|
102376