aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/com/iciql/SQLDialectDefault.java
diff options
context:
space:
mode:
authorJames Moger <james.moger@gitblit.com>2014-11-10 21:36:47 -0500
committerJames Moger <james.moger@gitblit.com>2014-11-10 21:46:37 -0500
commitcfb76669820f13cf52342988fbc5882c8077db7e (patch)
treee2114c01bf179aada815760a708cfb66ffaf4bc9 /src/main/java/com/iciql/SQLDialectDefault.java
parent3d833d8f7523fc1187b767cb2ab0602dcb5b67c8 (diff)
downloadiciql-cfb76669820f13cf52342988fbc5882c8077db7e.tar.gz
iciql-cfb76669820f13cf52342988fbc5882c8077db7e.zip
Fix SQLite INTEGER PRIMARY KEY AUTOINCREMENT mapping
Diffstat (limited to 'src/main/java/com/iciql/SQLDialectDefault.java')
-rw-r--r--src/main/java/com/iciql/SQLDialectDefault.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/main/java/com/iciql/SQLDialectDefault.java b/src/main/java/com/iciql/SQLDialectDefault.java
index d8a9ebd..7c656bd 100644
--- a/src/main/java/com/iciql/SQLDialectDefault.java
+++ b/src/main/java/com/iciql/SQLDialectDefault.java
@@ -337,12 +337,16 @@ public class SQLDialectDefault implements SQLDialect {
protected boolean isIntegerType(String dataType) {
if ("INT".equals(dataType)) {
return true;
- } else if ("BIGINT".equals(dataType)) {
+ } else if ("INTEGER".equals(dataType)) {
return true;
} else if ("TINYINT".equals(dataType)) {
return true;
} else if ("SMALLINT".equals(dataType)) {
return true;
+ } else if ("MEDIUMINT".equals(dataType)) {
+ return true;
+ } else if ("BIGINT".equals(dataType)) {
+ return true;
}
return false;
}