Status: Closed (View Workflow)
Affects Version/s: 1.2.2
Fix Version/s: 1.2.3
Environment:MySQL 5.6.22 Community Server
java version "1.7.0_71"
Java(TM) SE Runtime Environment (build 1.7.0_71-b14)
Java HotSpot(TM) 64-Bit Server VM (build 24.71-b01, mixed mode)
Throws the following exception:
The problem appears to be on line 83 of MySQLParameterizedQuery:
For the above query, the lastPart is an empty string and lastPart.indexOf(")") returns -1, thus lastPart.substring(0,-1) throws an exception.
I'm not sure what you are trying to do here, so I can't provide a fix but it's definitely a blocker for me.