? org/postgresql/test/jdbc2/backupjdbccvs.proj ? org/postgresql/test/jdbc2/jdbccvs.proj ? org/postgresql/test/jdbc2/pg.proj ? org/postgresql/test/jdbc2/pgsql.proj Index: org/postgresql/jdbc1/AbstractJdbc1Statement.java =================================================================== RCS file: /projects/cvsroot/pgsql-server/src/interfaces/jdbc/org/postgresql/jdbc1/AbstractJdbc1Statement.java,v retrieving revision 1.32 diff -c -p -r1.32 AbstractJdbc1Statement.java *** org/postgresql/jdbc1/AbstractJdbc1Statement.java 24 Aug 2003 22:10:09 -0000 1.32 --- org/postgresql/jdbc1/AbstractJdbc1Statement.java 25 Aug 2003 15:00:11 -0000 *************** public abstract class AbstractJdbc1State *** 916,922 **** */ public void setBoolean(int parameterIndex, boolean x) throws SQLException { ! bind(parameterIndex, x ? "'t'" : "'f'", PG_BOOLEAN); } /* --- 916,922 ---- */ public void setBoolean(int parameterIndex, boolean x) throws SQLException { ! bind(parameterIndex, x ? "'1'" : "'0'", PG_BOOLEAN); } /* *************** public abstract class AbstractJdbc1State *** 1548,1556 **** } break; case Types.BIT: if (x instanceof Boolean) { ! bind(parameterIndex, ((Boolean)x).booleanValue() ? "TRUE" : "FALSE", PG_TEXT); } else if (x instanceof Number) { --- 1548,1565 ---- } break; case Types.BIT: + case Types.BOOLEAN: if (x instanceof Boolean) { ! bind(parameterIndex, ((Boolean)x).booleanValue() ? "'1'" : "'0'", PG_TEXT); ! } ! else if (x instanceof String) ! { ! bind(parameterIndex, Boolean.valueOf(x.toString()).booleanValue() ? "'1'" : "'0'", PG_BOOLEAN); ! } ! else if (x instanceof Number) ! { ! bind(parameterIndex, ((Number)x).intValue()==1 ? "'1'" : "'0'", PG_TEXT); } else if (x instanceof Number) {