Bug #1774 Truncated words after double quote
| Submitted: | 6 Nov 2003 19:35 | Modified: | 17 Nov 2003 6:34 |
|---|---|---|---|
| Reporter: | Simon Yu | Email Updates: | |
| Status: | Can't repeat | Impact on me: | |
| Category: | Connector / J | Severity: | S1 (Critical) |
| Version: | 3.0.8 | OS: | Windows (windows 2000) |
| Assigned to: | Mark Matthews | CPU Architecture: | Any |
[17 Nov 2003 6:34]
Mark Matthews
I am not able to repeat this issue with Connector/J 3.0.9. Also, the code example you give is not valid Java code (i.e. there is no constructor for PreparedStatements). Please test your code with Connector/J 3.0.9, and if there is still an issue, post a _complete_, repeatable testcase.
Portions of this website are copyright © 2001, 2002 The PHP Group
Page generated in 0.038 sec. using MySQL 8.4.7-u6-cloud
Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the
respective copyright holders.
It is not reviewed in advance
by Oracle and does not necessarily represent the opinion of
Oracle or any other party.
Description: The problem is that I use the PreparedStatement to update a field, and the value contains double quote ("). After excuting "preparedstatement.executeUpdate(SQLStatement), the words after (") are truncated. For example: ---------------------------------------------------------------------- String SQLStatement = "insert into table_a values (?)"; PreparedStatement ps = new PreparedStatement(SQLStatement); ps.setString(1, "The word contains \" character"); ps.executeUpdate(); ----------------------------------------------------------------------- After executing this, the table_a has the value: "The word contains" How to repeat: execute the above program Suggested fix: The problem seems to be the JDBC driver