diff options
Diffstat (limited to 'src/com')
-rw-r--r-- | src/com/iciql/SQLDialectDefault.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/com/iciql/SQLDialectDefault.java b/src/com/iciql/SQLDialectDefault.java index 617bffb..7cc6bd7 100644 --- a/src/com/iciql/SQLDialectDefault.java +++ b/src/com/iciql/SQLDialectDefault.java @@ -134,10 +134,6 @@ public class SQLDialectDefault implements SQLDialect { field.isAutoIncrement, field.isPrimaryKey);
}
- if (!field.nullable) {
- buff.append(" NOT NULL");
- }
-
// default values
if (!field.isAutoIncrement && !field.isPrimaryKey) {
String dv = field.defaultValue;
@@ -148,6 +144,10 @@ public class SQLDialectDefault implements SQLDialect { }
}
}
+
+ if (!field.nullable) {
+ buff.append(" NOT NULL");
+ }
}
// if table does not have identity column then specify primary key
|