Bug 84656

Summary: SQL code generation misplaces comments
Product: [Applications] umbrello Reporter: Jussi Ruokomaki <jsruok>
Component: generalAssignee: Umbrello Development Group <umbrello-devel>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:

Description Jussi Ruokomaki 2004-07-07 15:36:09 UTC
Version:           1.2.2 (using KDE 3.2.3-1.0.1.kde, Fedora Core release 1 (Yarrow))
Compiler:          gcc version 3.3.2 20031022 (Red Hat Linux 3.3.2-1)
OS:                Linux (i686) release 2.4.22-1.2174.nptl_37.rhfc1.atsmp

For example, if attribute1 in a table1 has a comment "comment goes here" the generated code looks like:

CREATE TABLE table1 ( 
	attribute1 int comment goes here ,
	attribute2 int
);

when it should be more like 

CREATE TABLE table1 ( 
	attribute1 int , -- comment goes here
	attribute2 int
);

The comment could also be placed before the CREATE TABLE clause.
Comment 1 Sebastian Stein 2004-07-12 13:59:57 UTC
*** Bug has been marked as fixed ***.