[CONJ-635] first REPLACE INTO command from a batch is ignored Created: 2018-08-21 Updated: 2018-08-25 Resolved: 2018-08-22 |
|
| Status: | Closed |
| Project: | MariaDB Connector/J |
| Component/s: | batch |
| Affects Version/s: | 2.2.6 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Major |
| Reporter: | Paul Pogonyshev | Assignee: | Diego Dupin |
| Resolution: | Not a Bug | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||
| Description |
|
When I issue a batch REPLACE INTO statement (i.e. with PreparedStatement.addBatch() / executeBatch()) the very first set of parameters is ignored. This happens regardless of whether it would result in inserting or updating. E.g. if I prepare `replace into test (id, active) values (?, ?)` with parameter sets (1, true), (2, true) and (3, true), the first one (1, true) is ignored:
Note that other batch commands (INSERT INTO, UPDATE etc.) or REPLACE INTO executed as non-batch statement work as expected. |
| Comments |
| Comment by Diego Dupin [ 2018-08-22 ] | ||||||||||||||||||||||||||||||
|
reproduced with code :
Connector send the expected data to server, so i've created issue | ||||||||||||||||||||||||||||||
| Comment by Diego Dupin [ 2018-08-22 ] | ||||||||||||||||||||||||||||||
|
Btw these problem is associate with a protocol addition with server since 10.2 (COM_STMT_BULK_EXECUTE). It's use can be disabled setting the option "useBulkStmts" to false. | ||||||||||||||||||||||||||||||
| Comment by Diego Dupin [ 2018-08-22 ] | ||||||||||||||||||||||||||||||
|
closing issue, please subscribe to |