Buggy code:
public final class AlterTableTest extends BaseJDBCTestCase { ResultSet rs = null ; ResultSetMetaData rsmd ; DatabaseMetaData dbmd ; SQLWarning sqlWarn = null ; PreparedStatement pSt ; CallableStatement cSt ; Connection conn ; String [ ] [ ] expRS ; String [ ] expColNames ; public AlterTableTest ( String name ) { } public static Test suite ( ) { } private void createTestObjects ( Statement st ) throws SQLException { } private void checkWarning ( Statement st , String expectedWarning ) throws Exception { } public void testAddColumn ( ) throws Exception { } public void testDropObjects ( ) throws Exception { } public void testAddConstraint ( ) throws Exception { } public void testDropConstraint ( ) throws Exception { } public void testWithSchema ( ) throws Exception { } public void testTemporaryTable ( ) throws Exception { } public void testRenameAutoincrementColumn ( ) throws Exception { } private void checkValStartInc ( Statement st , String nm , String v , String s , String inc ) throws Exception { } public void testAlterColumn ( ) throws Exception { } public void testAlterTableAndSysdepends ( ) throws Exception { } public void testTriggersAndSynonyms ( ) throws Exception { } public void testDropColumnTriggerDependency ( ) throws Exception { } public void testDropColumn ( ) throws Exception { } private void createTableAndInsertData ( Statement s , String tableName , String column1 , String column2 ) throws SQLException { } private int numberOfRowsInSysdepends ( Statement st ) throws SQLException { } private void triggersExist ( Statement st , String [ ] [ ] expectedTriggers ) throws SQLException { } public void testJira3175 ( ) throws Exception { Statement st = createStatement ( ) ; st . executeUpdate ( ( "create<seq2seq4repair_space>table<seq2seq4repair_space>d3175<seq2seq4repair_space>(x<seq2seq4repair_space>varchar(12),<seq2seq4repair_space>y<seq2seq4repair_space>varchar(12),<seq2seq4repair_space>" + "id<seq2seq4repair_space>int<seq2seq4repair_space>primary<seq2seq4repair_space>key<seq2seq4repair_space>generated<seq2seq4repair_space>by<seq2seq4repair_space>default<seq2seq4repair_space>as<seq2seq4repair_space>identity)" ) ) ; rs = st . executeQuery ( ( "<seq2seq4repair_space>select<seq2seq4repair_space>COLUMNNAME,<seq2seq4repair_space>COLUMNNUMBER,<seq2seq4repair_space>COLUMNDATATYPE,<seq2seq4repair_space>" + ( ( ( "<seq2seq4repair_space>COLUMNDEFAULT,<seq2seq4repair_space>AUTOINCREMENTVALUE,<seq2seq4repair_space>AUTOINCREMENTSTART,<seq2seq4repair_space>" + "<seq2seq4repair_space>AUTOINCREMENTINC,<seq2seq4repair_space>TABLENAME,<seq2seq4repair_space>TABLETYPE,<seq2seq4repair_space>LOCKGRANULARITY<seq2seq4repair_space>" ) + "<seq2seq4repair_space>from<seq2seq4repair_space>sys.syscolumns<seq2seq4repair_space>c,sys.systables<seq2seq4repair_space>t<seq2seq4repair_space>" ) + "where<seq2seq4repair_space>c.referenceid<seq2seq4repair_space>=<seq2seq4repair_space>t.tableid<seq2seq4repair_space>and<seq2seq4repair_space>t.tablename='D3175'" ) ) ) ; JDBC . assertUnorderedResultSet ( rs , new String [ ] [ ] { new String [ ] { "X" , "1" , "VARCHAR(12)" , null , null , null , null , "D3175" , "T" , "R" } , new String [ ] { "Y" , "2" , "VARCHAR(12)" , null , null , null , null , "D3175" , "T" , "R" } , new String [ ] { "ID" , "3" , "INTEGER<seq2seq4repair_space>NOT<seq2seq4repair_space>NULL" , "GENERATED_BY_DEFAULT" , "1" , "1" , "1" , "D3175" , "T" , "R" } } ) ; st . executeUpdate ( "insert<seq2seq4repair_space>into<seq2seq4repair_space>d3175(x)<seq2seq4repair_space>values<seq2seq4repair_space>'b'" ) ; st . executeUpdate ( "alter<seq2seq4repair_space>table<seq2seq4repair_space>d3175<seq2seq4repair_space>drop<seq2seq4repair_space>column<seq2seq4repair_space>y" ) ; st . executeUpdate ( "insert<seq2seq4repair_space>into<seq2seq4repair_space>d3175(x)<seq2seq4repair_space>values<seq2seq4repair_space>'a'" ) ; rs = st . executeQuery ( ( "<seq2seq4repair_space>select<seq2seq4repair_space>COLUMNNAME,<seq2seq4repair_space>COLUMNNUMBER,<seq2seq4repair_space>COLUMNDATATYPE,<seq2seq4repair_space>" + ( ( ( "<seq2seq4repair_space>COLUMNDEFAULT,<seq2seq4repair_space>AUTOINCREMENTVALUE,<seq2seq4repair_space>AUTOINCREMENTSTART,<seq2seq4repair_space>" + "<seq2seq4repair_space>AUTOINCREMENTINC,<seq2seq4repair_space>TABLENAME,<seq2seq4repair_space>TABLETYPE,<seq2seq4repair_space>LOCKGRANULARITY<seq2seq4repair_space>" ) + "<seq2seq4repair_space>from<seq2seq4repair_space>sys.syscolumns<seq2seq4repair_space>c,sys.systables<seq2seq4repair_space>t<seq2seq4repair_space>" ) + "where<seq2seq4repair_space>c.referenceid<seq2seq4repair_space>=<seq2seq4repair_space>t.tableid<seq2seq4repair_space>and<seq2seq4repair_space>t.tablename='D3175'" ) ) ) ; <START_BUG> JDBC . assertUnorderedResultSet ( rs , new String [ ] [ ] { new String [ ] { "X" , "1" , "VARCHAR(12)" , null , null , null , null , "D3175" , "T" , "R" } , new String [ ] { "ID" , "2" , "INTEGER<seq2seq4repair_space>NOT<seq2seq4repair_space>NULL" , "GENERATED_BY_DEFAULT" , "22" , "1" , "1" , "D3175" , "T" , "R" } } ) ; <END_BUG> } public void testJira3177 ( ) throws Exception { } public void testJira2371 ( ) throws Exception { } public void testJira3355 ( ) throws Exception { } public void testJira4256 ( ) throws SQLException { } public void testDerby5157_addColumnWithDefaultValue ( ) throws SQLException { } public void testDerby5157_changeIncrement ( ) throws SQLException { } }

Fix:
JDBC . assertUnorderedResultSet ( rs , new String [ ] [ ] { new String [ ] { "X" , "1" , "VARCHAR(12)" , null , null , null , null , "D3175" , "T" , "R" } , new String [ ] { "ID" , "2" , "INTEGER<seq2seq4repair_space>NOT<seq2seq4repair_space>NULL" , "GENERATED_BY_DEFAULT" , "3" , "1" , "1" , "D3175" , "T" , "R" } } ) ;