if (ex.getErrorCode() != ISCConstants.isc_no_meta_update)
if (ex.getErrorCode() != ISCConstants.isc_dsql_error)
    public void testPreparedStatement() throws Exception {        DataSource dataSource = new SimpleDataSource(pool);                Connection con = dataSource.getConnection();                try {            Statement stmt = con.createStatement();                        try {                try {                    stmt.executeUpdate("CREATE TABLE test(a INTEGER)");                } catch(SQLException ex) {                    if (ex.getErrorCode() != ISCConstants.isc_no_meta_update)                        throw ex;                }                                stmt.executeUpdate("INSERT INTO test VALUES(1)");                                String sql = "SELECT * FROM test WHERE a = ?";                PreparedStatement ps = con.prepareStatement(sql);                                PreparedStatement original =                     ((XCachablePreparedStatement)ps).getOriginal();                                    try {                    ps.setInt(1, 1);                                        ResultSet rs = ps.executeQuery();                                        assertTrue("Result set should not be empty.", rs.next());                    assertTrue("Correct data should be selected", rs.getInt(1) == 1);                                        assertTrue("Statement that created result set should be " +                         "same as statement returned by ResultSet.getStatement().",                        rs.getStatement() == ps);                                        ps.setInt(1, 0);                    rs = ps.executeQuery();                                        assertTrue("Result set should be empty", !rs.next());                } finally {                    ps.close();                }                                ps = con.prepareStatement(sql);                try {                    PreparedStatement anotherOriginal =                         ((XCachablePreparedStatement)ps).getOriginal();                                            assertTrue("Original statemenets should be identical.",                         original == anotherOriginal);                } finally {                    ps.close();                }                            } finally {                stmt.close();            }        } finally{            con.close();                        pool.shutdown();        }    }