From 9950a28e33755e95eb2d40dbe3b78108400ce029 Mon Sep 17 00:00:00 2001 From: "Brian S. O'Neill" Date: Tue, 25 Sep 2007 20:17:34 +0000 Subject: Workaround MySQL blob/clob bug. --- .../com/amazon/carbonado/repo/jdbc/JDBCStorableIntrospector.java | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src') 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; -- cgit v1.2.3