Buggy code:
st . executeUpdate ( "<seq2seq4repair_space>insert<seq2seq4repair_space>into<seq2seq4repair_space>charTab<seq2seq4repair_space>values<seq2seq4repair_space>'asdf'" ) ; st . executeUpdate ( "<seq2seq4repair_space>insert<seq2seq4repair_space>into<seq2seq4repair_space>charTab<seq2seq4repair_space>values<seq2seq4repair_space>'fdsa'" ) ; st . executeUpdate ( "create<seq2seq4repair_space>table<seq2seq4repair_space>intTab<seq2seq4repair_space>(c1<seq2seq4repair_space>int<seq2seq4repair_space>check(INT(1)<seq2seq4repair_space>=<seq2seq4repair_space>c1))" ) ; st . executeUpdate ( "<seq2seq4repair_space>insert<seq2seq4repair_space>into<seq2seq4repair_space>intTab<seq2seq4repair_space>values<seq2seq4repair_space>1" ) ; assertStatementError ( "23513" , st , "insert<seq2seq4repair_space>into<seq2seq4repair_space>intTab<seq2seq4repair_space>values<seq2seq4repair_space>2" ) ; st . executeUpdate ( "<seq2seq4repair_space>create<seq2seq4repair_space>table<seq2seq4repair_space>maxIntTab<seq2seq4repair_space>(c1<seq2seq4repair_space>int<seq2seq4repair_space>check(INT(2147483647)<seq2seq4repair_space>><seq2seq4repair_space>c1))" ) ; st . executeUpdate ( "<seq2seq4repair_space>insert<seq2seq4repair_space>into<seq2seq4repair_space>maxIntTab<seq2seq4repair_space>values<seq2seq4repair_space>1" ) ; assertStatementError ( "23513" , st , "insert<seq2seq4repair_space>into<seq2seq4repair_space>maxIntTab<seq2seq4repair_space>values<seq2seq4repair_space>2147483647" ) ; conn . rollback ( ) ; st . executeUpdate ( "create<seq2seq4repair_space>table<seq2seq4repair_space>t1(c1<seq2seq4repair_space>int<seq2seq4repair_space>not<seq2seq4repair_space>null<seq2seq4repair_space>constraint<seq2seq4repair_space>asdf<seq2seq4repair_space>primary<seq2seq4repair_space>key)" ) ; st . executeUpdate ( "<seq2seq4repair_space>insert<seq2seq4repair_space>into<seq2seq4repair_space>t1<seq2seq4repair_space>values<seq2seq4repair_space>1,<seq2seq4repair_space>2,<seq2seq4repair_space>3,<seq2seq4repair_space>4,<seq2seq4repair_space>5" ) ; conn . commit ( ) ; PreparedStatement pSt1 = prepareStatement ( "insert<seq2seq4repair_space>into<seq2seq4repair_space>t1<seq2seq4repair_space>values<seq2seq4repair_space>1" ) ; PreparedStatement pSt2 = prepareStatement ( "update<seq2seq4repair_space>t1<seq2seq4repair_space>set<seq2seq4repair_space>c1<seq2seq4repair_space>=<seq2seq4repair_space>3<seq2seq4repair_space>where<seq2seq4repair_space>c1<seq2seq4repair_space>=<seq2seq4repair_space>4" ) ; PreparedStatement pSt3 = prepareStatement ( "select<seq2seq4repair_space>*<seq2seq4repair_space>from<seq2seq4repair_space>t1" ) ; assertStatementError ( "23505" , pSt1 ) ; assertStatementError ( "23505" , pSt2 ) ; rs = pSt3 . executeQuery ( ) ; expColNames = new String [ ] { "C1" } ; JDBC . assertColumnNames ( rs , expColNames ) ; expRS = new String [ ] [ ] { new String [ ] { "1" } , new String [ ] { "2" } , new String [ ] { "3" } , new String [ ] { "4" } , new String [ ] { "5" } } ; JDBC . assertFullResultSet ( rs , expRS , true ) ; st . executeUpdate ( "<seq2seq4repair_space>alter<seq2seq4repair_space>table<seq2seq4repair_space>t1<seq2seq4repair_space>drop<seq2seq4repair_space>constraint<seq2seq4repair_space>asdf" ) ; conn . rollback ( ) ; assertStatementError ( "23505" , pSt1 ) ; assertStatementError ( "23505" , pSt2 ) ; rs = pSt3 . executeQuery ( ) ; expColNames = new String [ ] { "C1" } ; JDBC . assertColumnNames ( rs , expColNames ) ; expRS = new String [ ] [ ] { new String [ ] { "1" } , new String [ ] { "2" } , new String [ ] { "3" } , new String [ ] { "4" } , new String [ ] { "5" } } ; JDBC . assertFullResultSet ( rs , expRS , true ) ; st . executeUpdate ( "<seq2seq4repair_space>drop<seq2seq4repair_space>table<seq2seq4repair_space>t1" ) ; st . executeUpdate ( "create<seq2seq4repair_space>table<seq2seq4repair_space>t1(c1<seq2seq4repair_space>int<seq2seq4repair_space>constraint<seq2seq4repair_space>asdf<seq2seq4repair_space>check(c1<seq2seq4repair_space>=<seq2seq4repair_space>1))" ) ; pSt = prepareStatement ( "insert<seq2seq4repair_space>into<seq2seq4repair_space>t1<seq2seq4repair_space>values<seq2seq4repair_space>(?)" ) ; rs = st . executeQuery ( "values<seq2seq4repair_space>(1)" ) ; rs . next ( ) ; rsmd = rs . getMetaData ( ) ; for ( int i = 1 ; i <= ( rsmd . getColumnCount ( ) ) ; i ++ ) pSt . setObject ( i , rs . getObject ( i ) ) ; assertUpdateCount ( pSt , 1 ) ; st . executeUpdate ( "drop<seq2seq4repair_space>table<seq2seq4repair_space>t1" ) ; st . executeUpdate ( ( "<seq2seq4repair_space>create<seq2seq4repair_space>table<seq2seq4repair_space>t1(active_flag<seq2seq4repair_space>char(2)<seq2seq4repair_space>" + ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( "check(active_flag<seq2seq4repair_space>IN<seq2seq4repair_space>('Y',<seq2seq4repair_space>'N')),<seq2seq4repair_space>" + "araccount_active_flag<seq2seq4repair_space>char(2)<seq2seq4repair_space>" ) + "check(araccount_active_flag<seq2seq4repair_space>IN<seq2seq4repair_space>('Y',<seq2seq4repair_space>'N')),<seq2seq4repair_space>" ) + "automatic_refill_flag<seq2seq4repair_space>char(2)<seq2seq4repair_space>" ) + "check(automatic_refill_flag<seq2seq4repair_space>IN<seq2seq4repair_space>('Y',<seq2seq4repair_space>'N')),<seq2seq4repair_space>" ) + "call_when_ready_flag<seq2seq4repair_space>char(2)<seq2seq4repair_space>" ) + "check(call_when_ready_flag<seq2seq4repair_space>IN<seq2seq4repair_space>('Y',<seq2seq4repair_space>'N')),<seq2seq4repair_space>" ) + "compliance_flag<seq2seq4repair_space>char(2)<seq2seq4repair_space>check(compliance_flag<seq2seq4repair_space>IN<seq2seq4repair_space>" ) + "('Y',<seq2seq4repair_space>'N')),<seq2seq4repair_space>delivery_flag<seq2seq4repair_space>char(2)<seq2seq4repair_space>" ) + "check(delivery_flag<seq2seq4repair_space>IN<seq2seq4repair_space>('Y',<seq2seq4repair_space>'N')),<seq2seq4repair_space>" ) + "double_count_flag<seq2seq4repair_space>char(2)<seq2seq4repair_space>check(double_count_flag<seq2seq4repair_space>" ) + "IN<seq2seq4repair_space>('Y',<seq2seq4repair_space>'N')),<seq2seq4repair_space>gender_ind<seq2seq4repair_space>char(2)<seq2seq4repair_space>check(gender_ind<seq2seq4repair_space>" ) + "IN<seq2seq4repair_space>('M',<seq2seq4repair_space>'F',<seq2seq4repair_space>'U')),<seq2seq4repair_space>geriatric_flag<seq2seq4repair_space>char(2)<seq2seq4repair_space>" ) + "check(geriatric_flag<seq2seq4repair_space>IN<seq2seq4repair_space>('Y',<seq2seq4repair_space>'N')),<seq2seq4repair_space>" ) + "refuse_inquiry_flag<seq2seq4repair_space>char(2)<seq2seq4repair_space>" ) + "check(refuse_inquiry_flag<seq2seq4repair_space>IN<seq2seq4repair_space>('Y',<seq2seq4repair_space>'N')),<seq2seq4repair_space>" ) + "animal_flag<seq2seq4repair_space>char(2)<seq2seq4repair_space>check(animal_flag<seq2seq4repair_space>IN<seq2seq4repair_space>('Y',<seq2seq4repair_space>" ) + "'N')),<seq2seq4repair_space>terminal_flag<seq2seq4repair_space>char(2)<seq2seq4repair_space>check(terminal_flag<seq2seq4repair_space>IN<seq2seq4repair_space>" ) + "('Y',<seq2seq4repair_space>'N')),<seq2seq4repair_space>unit_flag<seq2seq4repair_space>char(2)<seq2seq4repair_space>check(unit_flag<seq2seq4repair_space>IN<seq2seq4repair_space>" ) + "('Y',<seq2seq4repair_space>'N')),<seq2seq4repair_space>VIP_flag<seq2seq4repair_space>char(2)<seq2seq4repair_space>check(VIP_flag<seq2seq4repair_space>IN<seq2seq4repair_space>" ) + "('Y',<seq2seq4repair_space>'N')),<seq2seq4repair_space>snap_cap_flag<seq2seq4repair_space>char(2)<seq2seq4repair_space>" ) + "check(snap_cap_flag<seq2seq4repair_space>IN<seq2seq4repair_space>('Y',<seq2seq4repair_space>'N')),<seq2seq4repair_space>" ) + "consent_on_file_flag<seq2seq4repair_space>char(2)<seq2seq4repair_space>" ) + "check(consent_on_file_flag<seq2seq4repair_space>IN<seq2seq4repair_space>('Y',<seq2seq4repair_space>'N')),<seq2seq4repair_space>" ) + "enlarged_SIG_flag<seq2seq4repair_space>char(2)<seq2seq4repair_space>check(enlarged_SIG_flag<seq2seq4repair_space>" ) + "IN<seq2seq4repair_space>('Y',<seq2seq4repair_space>'N')),aquired_patient_flag<seq2seq4repair_space>char(2)<seq2seq4repair_space>" ) + "check(aquired_patient_flag<seq2seq4repair_space>IN<seq2seq4repair_space>('Y',<seq2seq4repair_space>'N')))" ) ) ) ; st . executeUpdate ( "drop<seq2seq4repair_space>table<seq2seq4repair_space>t1" ) ; st . executeUpdate ( ( "<seq2seq4repair_space>create<seq2seq4repair_space>table<seq2seq4repair_space>t1<seq2seq4repair_space>(c1<seq2seq4repair_space>int<seq2seq4repair_space>not<seq2seq4repair_space>null<seq2seq4repair_space>primary<seq2seq4repair_space>key,<seq2seq4repair_space>c2<seq2seq4repair_space>" + "int<seq2seq4repair_space>not<seq2seq4repair_space>null<seq2seq4repair_space>unique,<seq2seq4repair_space>c3<seq2seq4repair_space>int<seq2seq4repair_space>check<seq2seq4repair_space>(c3>=0))" ) ) ; st . executeUpdate ( "<seq2seq4repair_space>alter<seq2seq4repair_space>table<seq2seq4repair_space>t1<seq2seq4repair_space>add<seq2seq4repair_space>column<seq2seq4repair_space>c4<seq2seq4repair_space>int<seq2seq4repair_space>not<seq2seq4repair_space>null<seq2seq4repair_space>default<seq2seq4repair_space>1" ) ; st . executeUpdate ( "<seq2seq4repair_space>alter<seq2seq4repair_space>table<seq2seq4repair_space>t1<seq2seq4repair_space>add<seq2seq4repair_space>constraint<seq2seq4repair_space>c4_unique<seq2seq4repair_space>UNIQUE(c4)" ) ; st . executeUpdate ( "<seq2seq4repair_space>alter<seq2seq4repair_space>table<seq2seq4repair_space>t1<seq2seq4repair_space>add<seq2seq4repair_space>column<seq2seq4repair_space>c5<seq2seq4repair_space>int<seq2seq4repair_space>check(c5<seq2seq4repair_space>>=<seq2seq4repair_space>0)" ) ; rs = st . executeQuery ( ( "<seq2seq4repair_space>select<seq2seq4repair_space>c.type<seq2seq4repair_space>from<seq2seq4repair_space>" + ( "sys.sysconstraints<seq2seq4repair_space>c,<seq2seq4repair_space>sys.systables<seq2seq4repair_space>t<seq2seq4repair_space>where<seq2seq4repair_space>" + "c.tableid<seq2seq4repair_space>=<seq2seq4repair_space>t.tableid<seq2seq4repair_space>and<seq2seq4repair_space>tablename='T1'" ) ) ) ; expColNames = new String [ ] { "TYPE" } ; JDBC . assertColumnNames ( rs , expColNames ) ; expRS = new String [ ] [ ] { new String [ ] { "P" } , new String [ ] { "U" } , new String [ ] { "C" } , new String [ ] { "U" } , new String [ ] { "C" } } ; <START_BUG> JDBC . assertFullResultSet ( rs , expRS , true ) ; <END_BUG> assertStatementError ( "42Y55" , st , "<seq2seq4repair_space>drop<seq2seq4repair_space>table<seq2seq4repair_space>t2" ) ; st . executeUpdate ( "<seq2seq4repair_space>create<seq2seq4repair_space>table<seq2seq4repair_space>t2<seq2seq4repair_space>(c21<seq2seq4repair_space>int<seq2seq4repair_space>references<seq2seq4repair_space>t1)" ) ; rs = st . executeQuery ( ( "<seq2seq4repair_space>select<seq2seq4repair_space>c.type<seq2seq4repair_space>from<seq2seq4repair_space>" + ( "sys.sysconstraints<seq2seq4repair_space>c,<seq2seq4repair_space>sys.systables<seq2seq4repair_space>t<seq2seq4repair_space>where<seq2seq4repair_space>" + "c.tableid<seq2seq4repair_space>=<seq2seq4repair_space>t.tableid<seq2seq4repair_space>and<seq2seq4repair_space>tablename='T2'" ) ) ) ; expColNames = new String [ ] { "TYPE" } ; JDBC . assertColumnNames ( rs , expColNames ) ; expRS = new String [ ] [ ] { new String [ ] { "F" } } ; JDBC . assertFullResultSet ( rs , expRS , true ) ; assertStatementError ( "42Y55" , st , "<seq2seq4repair_space>drop<seq2seq4repair_space>table<seq2seq4repair_space>t3" ) ; st . executeUpdate ( ( "<seq2seq4repair_space>create<seq2seq4repair_space>table<seq2seq4repair_space>t3<seq2seq4repair_space>(c1<seq2seq4repair_space>int<seq2seq4repair_space>check<seq2seq4repair_space>(c1<seq2seq4repair_space>>=<seq2seq4repair_space>0),<seq2seq4repair_space>c2<seq2seq4repair_space>int<seq2seq4repair_space>" + ( ( ( ( ( "check<seq2seq4repair_space>(c2<seq2seq4repair_space>>=<seq2seq4repair_space>0),<seq2seq4repair_space>c3<seq2seq4repair_space>int<seq2seq4repair_space>check<seq2seq4repair_space>(c3<seq2seq4repair_space>>=<seq2seq4repair_space>0),<seq2seq4repair_space>c4<seq2seq4repair_space>int<seq2seq4repair_space>" + "check<seq2seq4repair_space>(c4<seq2seq4repair_space>>=<seq2seq4repair_space>0),<seq2seq4repair_space>c5<seq2seq4repair_space>int<seq2seq4repair_space>check<seq2seq4repair_space>(c5<seq2seq4repair_space>>=<seq2seq4repair_space>0),<seq2seq4repair_space>c6<seq2seq4repair_space>int<seq2seq4repair_space>" ) + "check<seq2seq4repair_space>(c6<seq2seq4repair_space>>=<seq2seq4repair_space>0),<seq2seq4repair_space>c7<seq2seq4repair_space>int<seq2seq4repair_space>check<seq2seq4repair_space>(c7<seq2seq4repair_space>>=<seq2seq4repair_space>0),<seq2seq4repair_space>c8<seq2seq4repair_space>int<seq2seq4repair_space>" ) + "check<seq2seq4repair_space>(c8<seq2seq4repair_space>>=<seq2seq4repair_space>0),<seq2seq4repair_space>c9<seq2seq4repair_space>int<seq2seq4repair_space>check<seq2seq4repair_space>(c9<seq2seq4repair_space>>=<seq2seq4repair_space>0),<seq2seq4repair_space>c10<seq2seq4repair_space>int<seq2seq4repair_space>" ) + "check<seq2seq4repair_space>(c10<seq2seq4repair_space>>=<seq2seq4repair_space>0),<seq2seq4repair_space>c11<seq2seq4repair_space>int<seq2seq4repair_space>check<seq2seq4repair_space>(c11<seq2seq4repair_space>>=<seq2seq4repair_space>0),<seq2seq4repair_space>c12<seq2seq4repair_space>int<seq2seq4repair_space>" ) + "check<seq2seq4repair_space>(c12<seq2seq4repair_space>>=<seq2seq4repair_space>0),<seq2seq4repair_space>c13<seq2seq4repair_space>int<seq2seq4repair_space>check<seq2seq4repair_space>(c13<seq2seq4repair_space>>=<seq2seq4repair_space>0))" ) ) ) ; rs = st . executeQuery ( ( "<seq2seq4repair_space>select<seq2seq4repair_space>c.type<seq2seq4repair_space>from<seq2seq4repair_space>" + ( "sys.sysconstraints<seq2seq4repair_space>c,<seq2seq4repair_space>sys.systables<seq2seq4repair_space>t<seq2seq4repair_space>where<seq2seq4repair_space>" + "c.tableid<seq2seq4repair_space>=<seq2seq4repair_space>t.tableid<seq2seq4repair_space>and<seq2seq4repair_space>tablename='T3'" ) ) ) ; expColNames = new String [ ] { "TYPE" } ; JDBC . assertColumnNames ( rs , expColNames ) ; expRS = new String [ ] [ ] { new String [ ] { "C" } , new String [ ] { "C" } , new String [ ] { "C" } , new String [ ] { "C" } , new String [ ] { "C" } , new String [ ] { "C" } , new String [ ] { "C" } , new String [ ] { "C" } , new String [ ] { "C" } , new String [ ] { "C" } , new String [ ] { "C" } , new String [ ] { "C" } , new String [ ] { "C" } } ; JDBC . assertFullResultSet ( rs , expRS , true ) ; assertStatementError ( "42Y55" , st , "<seq2seq4repair_space>drop<seq2seq4repair_space>table<seq2seq4repair_space>t4" ) ; st . executeUpdate ( ( "<seq2seq4repair_space>create<seq2seq4repair_space>table<seq2seq4repair_space>t4(c11<seq2seq4repair_space>int<seq2seq4repair_space>not<seq2seq4repair_space>null,<seq2seq4repair_space>c12<seq2seq4repair_space>int<seq2seq4repair_space>not<seq2seq4repair_space>" + "null,<seq2seq4repair_space>primary<seq2seq4repair_space>key<seq2seq4repair_space>(c11,<seq2seq4repair_space>c12))" ) ) ; rs = st . executeQuery ( ( "<seq2seq4repair_space>select<seq2seq4repair_space>c.type<seq2seq4repair_space>from<seq2seq4repair_space>" + ( "sys.sysconstraints<seq2seq4repair_space>c,<seq2seq4repair_space>sys.systables<seq2seq4repair_space>t<seq2seq4repair_space>where<seq2seq4repair_space>" + "c.tableid<seq2seq4repair_space>=<seq2seq4repair_space>t.tableid<seq2seq4repair_space>and<seq2seq4repair_space>tablename='T4'" ) ) ) ; expColNames = new String [ ] { "TYPE" }

Fix:
JDBC . assertUnorderedResultSet ( rs , expRS , true ) ;