diff options
author | Brian S. O'Neill <bronee@gmail.com> | 2007-09-25 20:17:34 +0000 |
---|---|---|
committer | Brian S. O'Neill <bronee@gmail.com> | 2007-09-25 20:17:34 +0000 |
commit | 9950a28e33755e95eb2d40dbe3b78108400ce029 (patch) | |
tree | 1923a9b0f84dd59476894b2495b721f591df6179 /src/main/java/com/amazon/carbonado | |
parent | 485208d17e3dd75bfd3731841938e80c1fa4fa64 (diff) |
Workaround MySQL blob/clob bug.
Diffstat (limited to 'src/main/java/com/amazon/carbonado')
-rw-r--r-- | src/main/java/com/amazon/carbonado/repo/jdbc/JDBCStorableIntrospector.java | 6 |
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;
|