Buggy code:
public class BlobClob4BlobTest extends BaseJDBCTestCase { public BlobClob4BlobTest ( String name ) { } public void setUp ( ) throws Exception { } protected void tearDown ( ) throws Exception { } public void testUnconsumedParameter ( ) throws SQLException { } public void testIsolationLevelChangeAfterRead ( ) throws SQLException { } public void testSetCharacterStream ( ) throws Exception { } public void testGetAsciiStream ( ) throws Exception { } public void testGetCharacterStream ( ) throws Exception { } public void testGetCharacterStreamWithUnicode ( ) throws Exception { } public void testTriggersWithClobColumn ( ) throws Exception { insertDefaultData ( ) ; Statement stmt = createStatement ( ) ; stmt . executeUpdate ( "CREATE<seq2seq4repair_space>TABLE<seq2seq4repair_space>testClobTriggerA<seq2seq4repair_space>(a<seq2seq4repair_space>CLOB(400k),<seq2seq4repair_space>b<seq2seq4repair_space>int)" ) ; stmt . executeUpdate ( "CREATE<seq2seq4repair_space>TABLE<seq2seq4repair_space>testClobTriggerB<seq2seq4repair_space>(a<seq2seq4repair_space>CLOB(400k),<seq2seq4repair_space>b<seq2seq4repair_space>int)" ) ; stmt . executeUpdate ( ( "create<seq2seq4repair_space>trigger<seq2seq4repair_space>T13A<seq2seq4repair_space>after<seq2seq4repair_space>update<seq2seq4repair_space>on<seq2seq4repair_space>testClob<seq2seq4repair_space>" + ( ( "referencing<seq2seq4repair_space>new<seq2seq4repair_space>as<seq2seq4repair_space>n<seq2seq4repair_space>old<seq2seq4repair_space>as<seq2seq4repair_space>o<seq2seq4repair_space>" + "for<seq2seq4repair_space>each<seq2seq4repair_space>row<seq2seq4repair_space>" ) + "insert<seq2seq4repair_space>into<seq2seq4repair_space>testClobTriggerA(a,<seq2seq4repair_space>b)<seq2seq4repair_space>values<seq2seq4repair_space>(n.a,<seq2seq4repair_space>n.b)" ) ) ) ; stmt . executeUpdate ( ( "create<seq2seq4repair_space>trigger<seq2seq4repair_space>T13B<seq2seq4repair_space>after<seq2seq4repair_space>INSERT<seq2seq4repair_space>on<seq2seq4repair_space>testClobTriggerA<seq2seq4repair_space>" + ( ( "referencing<seq2seq4repair_space>new<seq2seq4repair_space>table<seq2seq4repair_space>as<seq2seq4repair_space>n<seq2seq4repair_space>" + "for<seq2seq4repair_space>each<seq2seq4repair_space>statement<seq2seq4repair_space>" ) + "insert<seq2seq4repair_space>into<seq2seq4repair_space>testClobTriggerB(a,<seq2seq4repair_space>b)<seq2seq4repair_space>select<seq2seq4repair_space>n.a,<seq2seq4repair_space>n.b<seq2seq4repair_space>from<seq2seq4repair_space>n" ) ) ) ; commit ( ) ; stmt . executeUpdate ( "UPDATE<seq2seq4repair_space>testClob<seq2seq4repair_space>SET<seq2seq4repair_space>b<seq2seq4repair_space>=<seq2seq4repair_space>b<seq2seq4repair_space>+<seq2seq4repair_space>0" ) ; commit ( ) ; Statement origSt = createStatement ( ) ; Statement trigASt = createStatement ( ) ; Statement trigBSt = createStatement ( ) ; ResultSet origRS = origSt . executeQuery ( "select<seq2seq4repair_space>a,<seq2seq4repair_space>length(a),<seq2seq4repair_space>b<seq2seq4repair_space>from<seq2seq4repair_space>testClob<seq2seq4repair_space>order<seq2seq4repair_space>by<seq2seq4repair_space>b" ) ; ResultSet trigARS = trigASt . executeQuery ( "select<seq2seq4repair_space>a,<seq2seq4repair_space>length(a),<seq2seq4repair_space>b<seq2seq4repair_space>from<seq2seq4repair_space>testClobTriggerA<seq2seq4repair_space>order<seq2seq4repair_space>by<seq2seq4repair_space>b" ) ; <START_BUG> ResultSet trigBRS = trigBSt . executeQuery ( "select<seq2seq4repair_space>a,<seq2seq4repair_space>length(a),<seq2seq4repair_space>b<seq2seq4repair_space>from<seq2seq4repair_space>testClobTriggerA<seq2seq4repair_space>order<seq2seq4repair_space>by<seq2seq4repair_space>b" ) ; <END_BUG> int count = 0 ; while ( origRS . next ( ) ) { count ++ ; assertTrue ( ( "row<seq2seq4repair_space>trigger<seq2seq4repair_space>produced<seq2seq4repair_space>less<seq2seq4repair_space>rows<seq2seq4repair_space>" + count ) , trigARS . next ( ) ) ; assertTrue ( ( "statement<seq2seq4repair_space>trigger<seq2seq4repair_space>produced<seq2seq4repair_space>less<seq2seq4repair_space>rows<seq2seq4repair_space>" + count ) , trigBRS . next ( ) ) ; if ( ( origRS . getClob ( 1 ) ) != null ) { assertEquals ( "FAIL<seq2seq4repair_space>-<seq2seq4repair_space>Invalid<seq2seq4repair_space>checksum<seq2seq4repair_space>for<seq2seq4repair_space>row<seq2seq4repair_space>trigger" , getStreamCheckSum ( origRS . getClob ( 1 ) . getAsciiStream ( ) ) , getStreamCheckSum ( trigARS . getClob ( 1 ) . getAsciiStream ( ) ) ) ; assertEquals ( "FAIL<seq2seq4repair_space>-<seq2seq4repair_space>Invalid<seq2seq4repair_space>checksum<seq2seq4repair_space>for<seq2seq4repair_space>statement<seq2seq4repair_space>trigger" , getStreamCheckSum ( origRS . getClob ( 1 ) . getAsciiStream ( ) ) , getStreamCheckSum ( trigBRS . getClob ( 1 ) . getAsciiStream ( ) ) ) ; } assertEquals ( "FAIL<seq2seq4repair_space>-<seq2seq4repair_space>Invalid<seq2seq4repair_space>length<seq2seq4repair_space>in<seq2seq4repair_space>row<seq2seq4repair_space>trigger" , origRS . getInt ( 2 ) , trigARS . getInt ( 2 ) ) ; assertEquals ( "FAIL<seq2seq4repair_space>-<seq2seq4repair_space>Invalid<seq2seq4repair_space>length<seq2seq4repair_space>in<seq2seq4repair_space>statement<seq2seq4repair_space>trigger" , origRS . getInt ( 2 ) , trigBRS . getInt ( 2 ) ) ; assertEquals ( "FAIL<seq2seq4repair_space>-<seq2seq4repair_space>Length<seq2seq4repair_space>not<seq2seq4repair_space>updated<seq2seq4repair_space>on<seq2seq4repair_space>row<seq2seq4repair_space>trigger" , origRS . getInt ( 3 ) , trigARS . getInt ( 3 ) ) ; assertEquals ( "FAIL<seq2seq4repair_space>-<seq2seq4repair_space>Length<seq2seq4repair_space>not<seq2seq4repair_space>updated<seq2seq4repair_space>on<seq2seq4repair_space>statement<seq2seq4repair_space>trigger" , origRS . getInt ( 3 ) , trigBRS . getInt ( 3 ) ) ; } origRS . close ( ) ; trigARS . close ( ) ; trigBRS . close ( ) ; origSt . close ( ) ; trigASt . close ( ) ; trigBSt . close ( ) ; stmt . executeUpdate ( "DROP<seq2seq4repair_space>TRIGGER<seq2seq4repair_space>T13A" ) ; stmt . executeUpdate ( "DROP<seq2seq4repair_space>TRIGGER<seq2seq4repair_space>T13B" ) ; stmt . executeUpdate ( "DROP<seq2seq4repair_space>TABLE<seq2seq4repair_space>testClobTriggerB" ) ; stmt . executeUpdate ( "DROP<seq2seq4repair_space>TABLE<seq2seq4repair_space>testClobTriggerA" ) ; stmt . close ( ) ; commit ( ) ; } public void testGetSubString ( ) throws Exception { } public void testGetSubStringWithUnicode ( ) throws Exception { } public void testPositionString ( ) throws Exception { } public void testPositionStringWithUnicode ( ) throws Exception { } private void runPositionStringTest ( ) throws Exception { } public void testPositionClob ( ) throws Exception { } public void testPositionClobWithUnicode ( ) throws Exception { } private void runPositionClobTest ( ) throws Exception { } public void testSmallClobFields ( ) throws Exception { } public void testGetClobFromIntColumn ( ) throws Exception { } public void testSetClobToIntColumn ( ) throws Exception { } public void testRaisingOfExceptionsClob ( ) throws Exception { } public void testSetClob ( ) throws Exception { } public void testPositionAgressive ( ) throws Exception { } private static String T8insert ( PreparedStatement ps , int id , char [ ] base , int bl , char [ ] pattern , int pl , int pos , boolean addPattern ) throws SQLException { } private static int addPatternPrefix ( StringBuffer sb , char [ ] pattern , int pl , int fakeCount , int pos ) { } private static void checkClob8 ( Statement s , String pstr ) throws SQLException { } private static void checkClob8 ( Statement s , Clob pstr ) throws SQLException { } public void testClobAfterClose ( ) throws Exception { } public void testLockingClob ( ) throws Exception { } public void testLockingWithLongRowClob ( ) throws Exception { } public void testClobAfterCommit ( ) throws Exception { } public void testClobAfterClosingConnection ( ) throws Exception { } public void testClobAfterCommitWithSecondClob ( ) throws SQLException { } public void testGetClobBeforeAndAfterUpdate ( ) throws SQLException { } private void checkContentsBeforeAndAfterUpdatingClob ( ResultSet rs ) throws SQLException { } public void testGetClobBeforeAndAfterUpdateStream ( ) throws SQLException { } private void updateClobWithUpdateCharacterStream ( ResultSet rs ) throws SQLException { } public void testClobFinalizer ( ) throws Exception { } public void testGetBinaryStream ( ) throws Exception { } public void testGetBytes ( ) throws Exception { } public void testPositionBytes ( ) throws Exception { } public void testPositionBlobDeterministic ( ) throws IOException , SQLException { } public void testPositionBlob ( ) throws Exception { } public void testTriggerWithBlobColumn ( ) throws Exception { } public void testVarbinary ( ) throws Exception { } public void testGetBlobFromIntColumn ( ) throws Exception { } public void testSetBlobOnIntColumn ( ) throws Exception { } public void testRaisingOfExceptionsBlob ( ) throws Exception { } public void testSetBlob ( ) throws Exception { } public void testBlobAfterClose ( ) throws Exception { } public void testLockingBlob ( ) throws Exception { } public void testLockingWithLongRowBlob ( ) throws Exception { } public void testBlobAfterCommit ( ) throws Exception { } public void testBlobAfterClosingConnection ( ) throws Exception { } public void testBlobFinalizer ( ) throws Exception { } public void testGetBlobBeforeAndAfterUpdate ( ) throws Exception { }

Fix:
ResultSet trigBRS = trigBSt . executeQuery ( "select<seq2seq4repair_space>a,<seq2seq4repair_space>length(a),<seq2seq4repair_space>b<seq2seq4repair_space>from<seq2seq4repair_space>testClobTriggerB<seq2seq4repair_space>order<seq2seq4repair_space>by<seq2seq4repair_space>b" ) ;