From 9f06c940ee60f20ed7552b80f9e796b554e0f83b Mon Sep 17 00:00:00 2001 From: "Brian S. O'Neill" Date: Fri, 19 Oct 2012 17:49:29 +0000 Subject: Add workaround for MySQL int unsigned type. --- .../java/com/amazon/carbonado/repo/jdbc/JDBCStorableIntrospector.java | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/main') diff --git a/src/main/java/com/amazon/carbonado/repo/jdbc/JDBCStorableIntrospector.java b/src/main/java/com/amazon/carbonado/repo/jdbc/JDBCStorableIntrospector.java index 3a3641e..423861d 100644 --- a/src/main/java/com/amazon/carbonado/repo/jdbc/JDBCStorableIntrospector.java +++ b/src/main/java/com/amazon/carbonado/repo/jdbc/JDBCStorableIntrospector.java @@ -1027,6 +1027,8 @@ public class JDBCStorableIntrospector extends StorableIntrospector { dt = TIMESTAMP; } else if (dataTypeName.toUpperCase().contains("TIMESTAMP")) { dt = TIMESTAMP; + } else if (dataTypeName.equalsIgnoreCase("INT UNSIGNED")) { + dt = BIGINT; } } else if (dt == LONGVARBINARY && "BLOB".equalsIgnoreCase(dataTypeName)) { // Workaround MySQL bug. -- cgit v1.2.3