summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian S. O'Neill <bronee@gmail.com>2008-12-11 22:12:29 +0000
committerBrian S. O'Neill <bronee@gmail.com>2008-12-11 22:12:29 +0000
commite7c3eed36a5f1484fb994075af1cde9891b89143 (patch)
tree52fc7583e45bedd14c4c3290c188dee31c0da2df
parent44ab9fdec458b51577bf806dc542a22f8b632410 (diff)
Limit direct CLOB updates to 1000 characters.
-rw-r--r--src/main/java/com/amazon/carbonado/repo/jdbc/OracleSupportStrategy.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/main/java/com/amazon/carbonado/repo/jdbc/OracleSupportStrategy.java b/src/main/java/com/amazon/carbonado/repo/jdbc/OracleSupportStrategy.java
index 2a0c9be..8c55a4b 100644
--- a/src/main/java/com/amazon/carbonado/repo/jdbc/OracleSupportStrategy.java
+++ b/src/main/java/com/amazon/carbonado/repo/jdbc/OracleSupportStrategy.java
@@ -40,7 +40,8 @@ class OracleSupportStrategy extends JDBCSupportStrategy {
private static final String TRUNCATE_STATEMENT = "TRUNCATE TABLE %s";
- private static final int LOB_CHUNK_LIMIT = 2000;
+ private static final int BLOB_CHUNK_LIMIT = 2000;
+ private static final int CLOB_CHUNK_LIMIT = 1000;
//private static final String PLAN_TABLE_NAME = "TEMP_CARBONADO_PLAN_TABLE";
@@ -152,7 +153,7 @@ class OracleSupportStrategy extends JDBCSupportStrategy {
{
try {
long length = blob.getLength();
- if (length > LOB_CHUNK_LIMIT || ((long) ((int) length)) != length) {
+ if (length > BLOB_CHUNK_LIMIT || ((long) ((int) length)) != length) {
if (mBLOB_empty_lob == null) {
return super.setBlobValue(ps, column, blob);
}
@@ -191,7 +192,7 @@ class OracleSupportStrategy extends JDBCSupportStrategy {
{
try {
long length = clob.getLength();
- if (length > LOB_CHUNK_LIMIT || ((long) ((int) length)) != length) {
+ if (length > CLOB_CHUNK_LIMIT || ((long) ((int) length)) != length) {
if (mCLOB_empty_lob == null) {
return super.setClobValue(ps, column, clob);
}