String value = (String) x;
// letting database do lame conversion!
ps.setString(i + 1, value);
}
if (x instanceof BinaryInput) {
BinaryInput value = (BinaryInput) x;
// System.out.println("Blob length on write = "+Long.toString(value.getLength()));
// The oracle driver does a binary conversion to base 64 when writing data
// into a clob column using a binary stream operator. Since at this
// point there is no way to distinguish the two, and since our tests use CLOB,
// this code doesn't work for them.
// So, for now, use the ascii stream method.
//ps.setBinaryStream(i+1,value.getStream(),(int)value.getLength());
ps.setAsciiStream(i + 1, value.getStream(), (int) value.getLength());
}
if (x instanceof java.util.Date) {
ps.setDate(i + 1, new java.sql.Date(((java.util.Date) x).getTime()));
}
if (x instanceof Long) {