System.out.println("Second query generated exception" + ex.getMessage());
    public void testBugReport1() throws Exception {        PreparedStatement insertStmt =             connection.prepareStatement(INSERT_LONG_STR_STATEMENT);        try {            insertStmt.setInt(1, 1);            insertStmt.setString(2, "aaa");                        insertStmt.execute();                        insertStmt.setInt(1, 2);            insertStmt.setString(2, "'more than 80 chars are in " +                    "hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee" +                    "eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee");                        insertStmt.execute();                        insertStmt.setInt(1, 3);            insertStmt.setString(2, "more than 80 chars are in " +                    "hereeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee" +                    "eeeeeeeeeeeeeeeeee");                        insertStmt.execute();        } finally {            insertStmt.close();        }                Statement stmt = connection.createStatement();        try {            String query = "SELECT id, long_str FROM test_table";            ResultSet rs;                        try {                rs = stmt.executeQuery(query);                assertTrue("Should have at least one row", rs.next());                rs.close();            } catch(SQLException ex) {                // it is ok as well, since substr is declared as CSTRING(80)                // and truncation error happens            }            try  {                rs = stmt.executeQuery(query);                assertTrue("Should have at least one row", rs.next());                rs.close();            } catch(SQLException ex) {                // it is ok as well, since substr is declared as CSTRING(80)                // and truncation error happens            }                    } finally {            stmt.close();        }    }