[CONJ-155] Can't insert semicolons with rewriteBatchedStatements=true Created: 2015-05-22  Updated: 2015-06-23  Resolved: 2015-06-23

Status: Closed
Project: MariaDB Connector/J
Component/s: Other
Affects Version/s: 1.1.8
Fix Version/s: 1.1.9

Type: Bug Priority: Critical
Reporter: Andy Shulman Assignee: Diego Dupin
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Duplicate
duplicates CONJ-142 Using a semicolon in a string with "r... Closed
Relates
relates to CONJ-99 Support for batch statements rewrite Closed

 Description   

The fix for CONJ-99 introduced a regression. getInsertIncipit checks for the location of a semicolon in the INSERT statement to ensure the DML provided is just a simple INSERT. However, if you're trying to insert a semicolon as part of your data, you're out of luck.

For instance, INSERT INTO `mytable`(`myfield`) VALUES (';')



 Comments   
Comment by Julien Pivotto [ 2015-05-22 ]

Duplicate of CONJ-142 which is fixed on the master branch

Comment by Andy Shulman [ 2015-05-23 ]

I agree it's a duplicate, but it's definitely not fixed on master.

Comment by Diego Dupin [ 2015-06-23 ]

it is now (since the 4 june)

Generated at Thu Feb 08 03:13:35 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.