I am having a problem inserting large (>2K) strings into an Access 97 db with memo fields, using Access_JDBC30.jar.
Any string over 2048 characters inserted results in #Error in the memo field. Anything under that size works ok, and it works with the JDBC-ODBC bridge but not with HXTT 3.0.
Here are the smallest steps to reproduce:
Create an MDB with table1 and the following fields:
field1 - Number (Long Integer)
field2 - Memo
Convert to Access97
The following code reproduces the error in the mdb:
Class.forName("com.hxtt.sql.access.AccessDriver");
Connection c = DriverManager.getConnection("jdbc:access:/c:/memotest97.mdb");
StringBuffer sb = new StringBuffer();
for (int x = 0 ; x < 3000 ; x++)
sb.append("X");
Statement stmt = c.createStatement();
stmt.executeUpdate("insert into table1 values(99999,'" + sb + "')");
stmt.close();
c.close();
|
Thanks. v2.0.018 fixed an incompatible issue for MS Access 97's CLOB value with more than 2048 length. HXTT Access can read those older inserted CLOB values, but MS Access will show an error data prompt, then can show correctly those "error" CLOB data. Please download:)
|