[CONJ-142] Using a semicolon in a string with "rewriteBatchedStatements=true" fails Created: 2015-02-26 Updated: 2015-11-11 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: | Minor |
| Reporter: | Marcel Schneider | Assignee: | Rasmus Johansson (Inactive) |
| Resolution: | Fixed | Votes: | 2 |
| Labels: | None | ||
| Environment: |
Windows 7, 64 bit |
||
| Issue Links: |
|
||||||||||||||||
| Description |
|
I can reproduce the error I am submitting here with this code block:
The connection uses "rewriteBatchedStatements=true"
If you need any more infos, let me know. |
| Comments |
| Comment by tatsuo satoh [ 2015-04-10 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
The following issues that fixes part has been resolved. org.mariadb.jdbc.MySQLPreparedStatement.java
org.mariadb.jdbc.internal.common.query.MySQLParameterizedQuery.java
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Rasmus Johansson (Inactive) [ 2015-04-13 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
satotatsu1973 thanks for patches. I was wondering why you removed the semicolon check completely in getInsertIncipit. I looked at it and would suggest:
Let me know the reasoning behind your patch and I'm happy to revert to that if it makes sense. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by tatsuo satoh [ 2015-04-14 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Thank you for reply. I was except for the semicolon check going to try to support the following SQL, It is better to leave as it is considering the multiple SQL. SQL
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Thomas Bøgh Fangel [ 2015-05-07 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
We have also run into this bug. Any idea about when a new release with a fix will be available in Maven? |