[CONJ-470] Error when executing SQL contains "values" and rewriteBatchedStatements=true Created: 2017-05-15 Updated: 2017-06-04 Resolved: 2017-06-04 |
|
| Status: | Closed |
| Project: | MariaDB Connector/J |
| Component/s: | JDBC 4.2 compatibility |
| Affects Version/s: | 2.0.1 |
| Fix Version/s: | 1.6.1, 2.0.2 |
| Type: | Bug | Priority: | Major |
| Reporter: | tatsuo satoh | Assignee: | Diego Dupin |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Description |
|
I can reproduce the error I am submitting here with this code block:
The following code correction no longer causes an error, but I do not know if we should fix rewite batch processing. org.mariadb.jdbc.internal.protocol.AbstractQueryProtocol.java Before correction
After correction
|
| Comments |
| Comment by Diego Dupin [ 2017-05-15 ] |
|
Hi satotatsu1973, thanks for sharing this with a good test case ! This can occur when the "rewriteBatchedStatements" option is enabled, and executing a query that contain keyword "values" without any parameter "?". |