Skip to content

Commit b8c0973

Browse files
committed
Fix for Bug#106240 (33781440), StringIndexOutOfBoundsException when VALUE is at the end of the query.
1 parent 6945787 commit b8c0973

29 files changed

+2388
-1009
lines changed

CHANGES

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33

44
Version 8.0.29
55

6+
- Fix for Bug#106240 (33781440), StringIndexOutOfBoundsException when VALUE is at the end of the query.
7+
68
- Fix for Bug#106397 (33893591), Contribution: fix: fix LocalizedErrorMessages.properties doc: less then -> ...
79
Thanks to Jianjian Song for his contribution.
810

src/build/java/instrumentation/TranslateExceptions.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ public static void main(String[] args) throws Exception {
316316
EXCEPTION_INTERCEPTOR_GETTER);
317317
catchRuntimeException(clazz, clazz.getDeclaredMethod("getBytesRepresentation", new CtClass[] { CtClass.intType }), EXCEPTION_INTERCEPTOR_GETTER);
318318
catchRuntimeException(clazz, clazz.getDeclaredMethod("getParameterBindings", new CtClass[] {}), EXCEPTION_INTERCEPTOR_GETTER);
319-
catchRuntimeException(clazz, clazz.getDeclaredMethod("initializeFromParseInfo", new CtClass[] {}), EXCEPTION_INTERCEPTOR_GETTER);
319+
catchRuntimeException(clazz, clazz.getDeclaredMethod("initializeFromQueryInfo", new CtClass[] {}), EXCEPTION_INTERCEPTOR_GETTER);
320320
catchRuntimeException(clazz, clazz.getDeclaredMethod("isNull", new CtClass[] { CtClass.intType }), EXCEPTION_INTERCEPTOR_GETTER);
321321
catchRuntimeException(clazz, clazz.getDeclaredMethod("prepareBatchedInsertSQL", new CtClass[] { ctJdbcConnection, CtClass.intType }),
322322
EXCEPTION_INTERCEPTOR_GETTER);
@@ -340,7 +340,7 @@ public static void main(String[] args) throws Exception {
340340
clazz.getDeclaredMethod("executeInternal",
341341
new CtClass[] { CtClass.intType, ctMessageBody, CtClass.booleanType, CtClass.booleanType, ctColumnDefinition, CtClass.booleanType }),
342342
EXCEPTION_INTERCEPTOR_GETTER);
343-
//catchRuntimeException(clazz, clazz.getDeclaredMethod("canRewriteAsMultiValueInsertAtSqlLevel", new CtClass[] {}), EXCEPTION_INTERCEPTOR_GETTER);
343+
//catchRuntimeException(clazz, clazz.getDeclaredMethod("isRewritableWithMultiValueClause", new CtClass[] {}), EXCEPTION_INTERCEPTOR_GETTER);
344344
catchRuntimeException(clazz, clazz.getDeclaredMethod("realClose", new CtClass[] { CtClass.booleanType, CtClass.booleanType }),
345345
EXCEPTION_INTERCEPTOR_GETTER);
346346
catchRuntimeException(clazz, clazz.getDeclaredMethod("serverExecute", new CtClass[] { CtClass.intType, CtClass.booleanType, ctColumnDefinition }),

src/main/core-api/java/com/mysql/cj/AppendingBatchVisitor.java

Lines changed: 0 additions & 88 deletions
This file was deleted.

src/main/core-api/java/com/mysql/cj/BatchVisitor.java

Lines changed: 0 additions & 43 deletions
This file was deleted.

src/main/core-api/java/com/mysql/cj/BindValue.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,6 @@ public interface BindValue {
6565

6666
void setEscapeBytesIfNeeded(boolean val);
6767

68-
boolean isLoadDataQuery();
69-
70-
void setLoadDataQuery(boolean isLoadDataQuery);
71-
7268
Object getValue();
7369

7470
boolean isNational();

0 commit comments

Comments
 (0)