Patch from Manfred: Separate CLOB from LONGVARCHAR in setStatementValues()

This commit is contained in:
hns 2004-04-30 16:09:52 +00:00
parent 1a5c665579
commit 57091f8943

View file

@ -1611,7 +1611,6 @@ public final class NodeManager {
case Types.LONGVARBINARY:
case Types.LONGVARCHAR:
try {
newprop.setStringValue(rs.getString(i+1+offset));
} catch (SQLException x) {
@ -1667,7 +1666,7 @@ public final class NodeManager {
isr.read(c);
newprop.setStringValue(String.copyValueOf(c));
break;
// continue;
default:
newprop.setStringValue(rs.getString(i+1+offset));
@ -1900,7 +1899,6 @@ public final class NodeManager {
case Types.LONGVARBINARY:
case Types.LONGVARCHAR:
case Types.CLOB:
try {
stmt.setString(stmtNumber, p.getStringValue());
} catch (SQLException x) {
@ -1913,6 +1911,13 @@ public final class NodeManager {
break;
case Types.CLOB:
String val = p.getStringValue();
Reader isr = new StringReader (val);
stmt.setCharacterStream (stmtNumber,isr, val.length());
break;
case Types.CHAR:
case Types.VARCHAR:
case Types.OTHER: