Buggy code:
public ResultSet getFunctionColumns ( String catalog , String schemaPattern , String functionNamePattern , String parameterNamePattern ) throws SQLException { } private ResultSet doGetProcCols ( String catalog , String schemaPattern , String procedureNamePattern , String columnNamePattern , String queryName ) throws SQLException { } public ResultSet getTables ( String catalog , String schemaPattern , String tableNamePattern , String [ ] types ) throws SQLException { } public ResultSet getSchemas ( ) throws SQLException { } public ResultSet getCatalogs ( ) throws SQLException { } public ResultSet getTableTypes ( ) throws SQLException { } public ResultSet getColumns ( String catalog , String schemaPattern , String tableNamePattern , String columnNamePattern ) throws SQLException { } public ResultSet getColumnsForODBC ( String catalog , String schemaPattern , String tableNamePattern , String columnNamePattern ) throws SQLException { } private ResultSet doGetCols ( String catalog , String schemaPattern , String tableNamePattern , String columnNamePattern , String queryName ) throws SQLException { } public ResultSet getColumnPrivileges ( String catalog , String schema , String table , String columnNamePattern ) throws SQLException { } public ResultSet getTablePrivileges ( String catalog , String schemaPattern , String tableNamePattern ) throws SQLException { } public ResultSet getBestRowIdentifier ( String catalogPattern , String schemaPattern , String table , int scope , boolean nullable ) throws SQLException { } public ResultSet getBestRowIdentifierForODBC ( String catalogPattern , String schemaPattern , String table , int scope , boolean nullable ) throws SQLException { } private ResultSet doGetBestRowId ( String catalogPattern , String schemaPattern , String table , int scope , boolean nullable , String queryPrefix ) throws SQLException { } public ResultSet getVersionColumns ( String catalog , String schema , String table ) throws SQLException { } public ResultSet getVersionColumnsForODBC ( String catalog , String schema , String table ) throws SQLException { } private ResultSet doGetVersionCols ( String catalog , String schema , String table , String queryName ) throws SQLException { } private boolean notInSoftUpgradeMode ( ) throws SQLException { } public ResultSet getPrimaryKeys ( String catalog , String schema , String table ) throws SQLException { } public ResultSet getImportedKeys ( String catalog , String schema , String table ) throws SQLException { } public ResultSet getExportedKeys ( String catalog , String schema , String table ) throws SQLException { } public ResultSet getCrossReference ( String primaryCatalog , String primarySchema , String primaryTable , String foreignCatalog , String foreignSchema , String foreignTable ) throws SQLException { } public ResultSet getCrossReferenceForODBC ( String primaryCatalog , String primarySchema , String primaryTable , String foreignCatalog , String foreignSchema , String foreignTable ) throws SQLException { } public ResultSet getTypeInfo ( ) throws SQLException { } public ResultSet getTypeInfoForODBC ( ) throws SQLException { } public ResultSet getIndexInfo ( String catalog , String schema , String table , boolean unique , boolean approximate ) throws SQLException { } public ResultSet getIndexInfoForODBC ( String catalog , String schema , String table , boolean unique , boolean approximate ) throws SQLException { } private ResultSet doGetIndexInfo ( String catalog , String schema , String table , boolean unique , boolean approximate , String queryName ) throws SQLException { } public boolean supportsResultSetType ( int type ) { } public boolean supportsResultSetConcurrency ( int type , int concurrency ) { } public boolean ownUpdatesAreVisible ( int type ) { } public boolean ownDeletesAreVisible ( int type ) { } public boolean ownInsertsAreVisible ( int type ) { } public boolean othersUpdatesAreVisible ( int type ) { } public boolean othersDeletesAreVisible ( int type ) { } public boolean othersInsertsAreVisible ( int type ) { } public boolean updatesAreDetected ( int type ) { } public boolean deletesAreDetected ( int type ) { } public boolean insertsAreDetected ( int type ) { } public boolean supportsBatchUpdates ( ) { } public ResultSet getUDTs ( String catalog , String schemaPattern , String typeNamePattern , int [ ] types ) throws SQLException { } public Connection getConnection ( ) { } public boolean supportsStatementPooling ( ) { } public boolean supportsSavepoints ( ) { } public boolean supportsNamedParameters ( ) { } public boolean supportsMultipleOpenResults ( ) { } public boolean supportsGetGeneratedKeys ( ) { } public boolean supportsResultSetHoldability ( int holdability ) { } public int getResultSetHoldability ( ) { } public int getDatabaseMajorVersion ( ) { } public int getDatabaseMinorVersion ( ) { } public int getJDBCMajorVersion ( ) { } public int getJDBCMinorVersion ( ) { } public int getSQLStateType ( ) { <START_BUG> return JDBC30Translation . SQL_STATE_SQL99 ; <END_BUG> } public boolean locatorsUpdateCopy ( ) throws SQLException { } public ResultSet getSuperTypes ( String catalog , String schemaPattern , String typeNamePattern ) throws SQLException { } public ResultSet getSuperTables ( String catalog , String schemaPattern , String typeNamePattern ) throws SQLException { } public ResultSet getAttributes ( String catalog , String schemaPattern , String typeNamePattern , String attributeNamePattern ) throws SQLException { } public ResultSet getClientInfoProperties ( ) throws SQLException { } public ResultSet getSchemas ( String catalog , String schemaPattern ) throws SQLException { } public ResultSet getClientCachedMetaData ( ) throws SQLException { } private ResultSet getSimpleQuery ( String nameKey , boolean net ) throws SQLException { } protected ResultSet getSimpleQuery ( String nameKey ) throws SQLException { } private PreparedStatement getPreparedQueryUsingSystemTables ( String nameKey , boolean net ) throws SQLException { } private PreparedStatement getPreparedQuery ( String queryName , boolean net ) throws SQLException { } protected PreparedStatement getPreparedQuery ( String queryName ) throws SQLException { } private String getQueryFromDescription ( String queryName , boolean net ) throws StandardException { } private PreparedStatement prepareSPS ( String spsName , String spsText , boolean net ) throws SQLException , StandardException { } protected static final String swapNull ( String s ) { } private GenericConstantActionFactory getGenericConstantActionFactory ( ) throws StandardException { } private LanguageConnectionContext getLanguageConnectionContext ( ) { } private void loadQueryDescriptions ( ) { } public final Object run ( ) { } }

Fix:
return DatabaseMetaData . sqlStateSQL99 ;