@@ -11448,7 +11448,7 @@ public void testBug20391550() throws Exception {
1144811448 st.setQueryTimeout(2);
1144911449
1145011450 PreparedStatement ps = con.prepareStatement("update testBug20391550 set c2=? where c1=?");
11451- assertThrows(SQLException.class, "Statement cancelled due to timeout or client request", () -> st.executeQuery("select sleep(3 )"));
11451+ assertThrows(SQLException.class, "Statement cancelled due to timeout or client request", () -> st.executeQuery("select sleep(8 )"));
1145211452
1145311453 assertThrows(SQLException.class, "No operations allowed after statement closed.", () -> {
1145411454 ps.setInt(2, 100);
@@ -11576,16 +11576,14 @@ public void testBug103878() throws Exception {
1157611576 PreparedStatement ps = con.prepareStatement("SHOW CREATE TABLE testBug103878");
1157711577 this.rs = ps.executeQuery();
1157811578 assertTrue(this.rs.next());
11579- assertTrue(this.rs.getString(2).startsWith("CREATE TABLE"));
11580- System.out.println(this.rs.getString(2));
11579+ assertTrue(StringUtils.startsWithIgnoreCase(this.rs.getString(2), "CREATE TABLE"));
1158111580 ps.close();
1158211581
1158311582 ps = con.prepareStatement("SHOW CREATE VIEW testBug103878_view");
1158411583 this.rs = ps.executeQuery();
1158511584 assertTrue(this.rs.next());
11586- assertTrue(this.rs.getString(2).startsWith("CREATE"));
11587- assertTrue(this.rs.getString(2).contains("testBug103878_view"));
11588- System.out.println(this.rs.getString(2));
11585+ assertTrue(StringUtils.startsWithIgnoreCase(this.rs.getString(2), "CREATE"));
11586+ assertTrue(StringUtils.indexOfIgnoreCase(this.rs.getString(2), "testBug103878_view") >= 0);
1158911587 ps.close();
1159011588
1159111589 ps = con.prepareStatement("SHOW PROCESSLIST");
@@ -11599,8 +11597,7 @@ public void testBug103878() throws Exception {
1159911597 ps = con.prepareStatement("SHOW CREATE USER testBug103878User");
1160011598 this.rs = ps.executeQuery();
1160111599 assertTrue(this.rs.next());
11602- assertTrue(this.rs.getString(1).startsWith("CREATE USER"));
11603- System.out.println(this.rs.getString(1));
11600+ assertTrue(StringUtils.startsWithIgnoreCase(this.rs.getString(1), "CREATE USER"));
1160411601 ps.close();
1160511602 }
1160611603 } finally {
0 commit comments