From cfb76669820f13cf52342988fbc5882c8077db7e Mon Sep 17 00:00:00 2001 From: James Moger Date: Mon, 10 Nov 2014 21:36:47 -0500 Subject: Fix SQLite INTEGER PRIMARY KEY AUTOINCREMENT mapping --- src/main/java/com/iciql/SQLDialectDefault.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/main/java/com/iciql/SQLDialectDefault.java') 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; } -- cgit v1.2.3