summaryrefslogtreecommitdiff
path: root/src/main/java/com/amazon/carbonado
diff options
context:
space:
mode:
authorBrian S. O'Neill <bronee@gmail.com>2012-10-19 17:49:29 +0000
committerBrian S. O'Neill <bronee@gmail.com>2012-10-19 17:49:29 +0000
commit9f06c940ee60f20ed7552b80f9e796b554e0f83b (patch)
tree8b3c2a38b6e26e3dd3c70b91b89609b7bdbf351f /src/main/java/com/amazon/carbonado
parent906f9cdc014b251ce951f7d0a3fb5967c7153c98 (diff)
Add workaround for MySQL int unsigned type.
Diffstat (limited to 'src/main/java/com/amazon/carbonado')
-rw-r--r--src/main/java/com/amazon/carbonado/repo/jdbc/JDBCStorableIntrospector.java2
1 files changed, 2 insertions, 0 deletions
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.