summaryrefslogtreecommitdiff
path: root/src/main/java/com/amazon/carbonado
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/com/amazon/carbonado')
-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;