summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/main/java/com/amazon/carbonado/repo/jdbc/JDBCStorableIntrospector.java6
1 files changed, 6 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 27c0b13..f9fb6a3 100644
--- a/src/main/java/com/amazon/carbonado/repo/jdbc/JDBCStorableIntrospector.java
+++ b/src/main/java/com/amazon/carbonado/repo/jdbc/JDBCStorableIntrospector.java
@@ -899,6 +899,12 @@ public class JDBCStorableIntrospector extends StorableIntrospector {
} else if (dataTypeName.toUpperCase().contains("TIMESTAMP")) {
dt = TIMESTAMP;
}
+ } else if (dt == LONGVARBINARY && "BLOB".equalsIgnoreCase(dataTypeName)) {
+ // Workaround MySQL bug.
+ dt = BLOB;
+ } else if (dt == LONGVARCHAR && "CLOB".equalsIgnoreCase(dataTypeName)) {
+ // Workaround MySQL bug.
+ dt = CLOB;
}
dataType = dt;