I'm driving Weblogic 8.1.3 on WinTel.
DB2 8.1.4 on Sun64.
I'm using Weblogic DB2's Type 2 driver, which has been very
reliable - so far.
I have a PreparedStatement that updates perfectly when
the table is define so that one particular column has
datatype VARCHAR(2000) .
The table was recently modified so that the data type for
the column is now VARCHAR(4000).
SQL statements continue to work perfectly when inserting data
consisting of 2000 or fewer characters.
Upon updating a column with 3990 characters the following
error occurs :
COM.ibm.db2.jdbc.DB2Exception : [IBM][CLI Driver] CLI0109E String data
right truncation. SQLSTATE=22001
I haven't a clue as to the source of the problem and that's
where your suggestions would be very helpful.
The DB2 Message Reference for CLI0190E suggests to use
SQLSetParam or SQLBindParameter, but that doesn't sound like
advice relavant for a JDBC application.
A few google posts suggest that this is a database configuration
issue and that a change in a database configuration file
might fix things. If this is the case more information on
that would be very useful.
In some Google posts developers fathomed that this was an
issue which could be resolved with a different database
driver. Does the type 2 driver "not support" varchar 4000?
Thanks.