Ticket #1 (closed defect: fixed)
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
Note: See
TracTickets for help on using
tickets.
