[CONJ-283] MariaDbClientPreparedStatement - syntax error on insert values Created: 2016-04-18 Updated: 2016-04-25 Resolved: 2016-04-22 |
|
| Status: | Closed |
| Project: | MariaDB Connector/J |
| Component/s: | Other |
| Affects Version/s: | 1.4.0, 1.3.7, 1.4.1, 1.4.2 |
| Fix Version/s: | 1.4.3 |
| Type: | Bug | Priority: | Major |
| Reporter: | or gerson | Assignee: | Diego Dupin |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Environment: |
Windows\linux connecting to MySQL 5.5.X |
||
| Issue Links: |
|
||||||||||||
| Description |
|
When either by configuration of "useServerPrepStmts=false" a query such as "INSERT INTO mytable VALUES (?,?) , (?,?)" this results in the final query to be sent as: results in syntax error. i have checked the older code of version 1.1.8 (before 1.3.0, and 1.1.8 is the version i used before) in that version in class MySQLParameterizedQuery the createQueryParts [0] INSERT INTO mytable VALUES ( and then the query is sent correctly to the DB |
| Comments |
| Comment by Christian Ciach [ 2016-04-21 ] | ||
|
The same happens with a statement like this:
If called with the parameters "1,2,3" the resulting query will look like this:
| ||
| Comment by Diego Dupin [ 2016-04-22 ] | ||
|
correction done in commits:
Correction release 1.4.3 will be done shortly and available on maven central tomorrow (due to replication time). |