Subject | Re: Incorrect values within SQLDA structure |
---|---|
Author | rrokytskyy |
Post date | 2002-04-04T09:47:29Z |
> I don't know what the spec says.I tried the following code, but it works:
> But when you think this should be the correct behaviour than there
> probably is a bug in the driver, because i got the following
PreparedStatement stmt = connection.prepareStatement(
"INSERT INTO test_table VALUES (1, ?)");
stmt.setString(1, "WERT");
stmt.setString(1, "");
int updated = stmt.executeUpdate();
System.out.println("Inserted " + updated + " rows");
table definition is:
CREATE TABLE test_table(
id INTEGER,
"F_KH_EINHEIT_SOLL" VARCHAR(15) CHARACTER SET WIN1252
);
connection is in auto-commit mode.
Can you show your code?
Thanks!
Roman Rokytskyy