Skip to content

Commit 6945787

Browse files
committed
Test case for Bug#62006 (16714956), JAVA.IO.NOTSERIALIZABLEEXCEPTION:
JAVA.IO.STRINGREADER WHEN PROFILESQL=TRUE.
1 parent 5f5d1b9 commit 6945787

File tree

2 files changed

+31
-0
lines changed

2 files changed

+31
-0
lines changed

CHANGES

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ Version 8.0.29
3232

3333
- Fix for Bug#104349 (33563548), com.mysql.cj NPE.
3434

35+
- Fix for Bug#62006 (16714956), JAVA.IO.NOTSERIALIZABLEEXCEPTION: JAVA.IO.STRINGREADER WHEN PROFILESQL=TRUE.
36+
3537
- WL#14750, Better unification of query bindings.
3638

3739
- WL#14834, Support for FIDO authentication.

src/test/java/testsuite/regression/StatementRegressionTest.java

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12090,4 +12090,33 @@ public void testBug104349() throws Exception {
1209012090

1209112091
} while (useSPS = !useSPS);
1209212092
}
12093+
12094+
/**
12095+
* Tests for Bug#62006 (16714956), JAVA.IO.NOTSERIALIZABLEEXCEPTION: JAVA.IO.STRINGREADER WHEN PROFILESQL=TRUE.
12096+
*
12097+
* @throws Exception
12098+
*/
12099+
@Test
12100+
public void testBug62006() throws Exception {
12101+
createTable("testBug62006", "(f1 longtext)");
12102+
12103+
Properties props = new Properties();
12104+
props.setProperty(PropertyKey.sslMode.getKeyName(), SslMode.DISABLED.name());
12105+
props.setProperty(PropertyKey.allowPublicKeyRetrieval.getKeyName(), "true");
12106+
props.setProperty(PropertyKey.profileSQL.getKeyName(), "true");
12107+
12108+
boolean useSPS = false;
12109+
do {
12110+
props.setProperty(PropertyKey.useServerPrepStmts.getKeyName(), "" + useSPS);
12111+
Connection testConn = getConnectionWithProps(props);
12112+
this.pstmt = testConn.prepareStatement("insert into testBug62006 values(?)");
12113+
this.pstmt.setObject(1, new StringReader("test"), java.sql.Types.LONGVARCHAR, 0);
12114+
this.pstmt.execute();
12115+
this.pstmt.setObject(1, new StringReader("test"), java.sql.Types.LONGVARCHAR, 1);
12116+
this.pstmt.execute();
12117+
this.pstmt.setObject(1, new StringReader("test"));
12118+
this.pstmt.execute();
12119+
testConn.close();
12120+
} while (useSPS = !useSPS);
12121+
}
1209312122
}

0 commit comments

Comments
 (0)