Ticket #1 (closed defect: fixed)

Opened 16 months ago

Last modified 16 months ago

Field definition error

Reported by: john@… Owned by: uriel
Priority: major Component: GearsORM
Version: 0.1 Keywords: Fields
Cc:

Description

Fields.toSql return wrong definition, if !maxLength and (notNull or defaultValue or unique). It need space after sqlType.

return  sqlType +
18 	                        (opts.maxLength ? "(" + opts.maxLength + ") " : "")+
19 	                        (opts.notNull ? "NOT NULL " : "") +
20 	                        (opts.defaultValue ? "DEFAULT " + opts.defaultValue+" ": "") +
21 	                        (opts.unique ? "UNIQUE " : "");

Change History

Changed 16 months ago by uriel

  • status changed from new to assigned

Changed 16 months ago by uriel

  • status changed from assigned to closed
  • resolution set to fixed
Note: See TracTickets for help on using tickets.