[CONJ-82] data type LONGVARCHAR not supported in setObject() Created: 2014-02-11 Updated: 2014-12-09 Resolved: 2014-12-09 |
|
| Status: | Closed |
| Project: | MariaDB Connector/J |
| Component/s: | None |
| Affects Version/s: | 1.1.5 |
| Fix Version/s: | 1.1.8 |
| Type: | Bug | Priority: | Major |
| Reporter: | Daniel Kessel | Assignee: | Massimo Siani (Inactive) |
| Resolution: | Fixed | Votes: | 2 |
| Labels: | None | ||
| Attachments: |
|
| Description |
|
The MariaDB Connector fails to handle Strings correctly when the datatype LONGVARCHAR is used. The MySQL connector handles CHAR, VARCHAR and LONGVARCHAR identically. The MariaDB connector should do the same. To reproduce:
Expected: Statement gets executed without errors Exception in thread "main" java.sql.SQLException: Could not convert [This is a test!] to -1 Proposed patch:
|
| Comments |
| Comment by Patrice Scheidt [ 2014-02-11 ] |
|
Ok, shouldn't the statement be "INSERT INTO `exception` (`column1`) VALUES ( ? )" |
| Comment by Jochen Wiedmann [ 2014-02-20 ] |
|
Confirming the issue, and the solution. Attaching a proposed patch, which includes a test case. |
| Comment by Jochen Wiedmann [ 2014-02-20 ] |
|
Attaching proposed patch, including a test case. |