diff options
author | Barry Lind <barry@xythos.com> | 2003-09-17 05:07:38 +0000 |
---|---|---|
committer | Barry Lind <barry@xythos.com> | 2003-09-17 05:07:38 +0000 |
commit | 0671b65b8188ba9a7440ec145bf93e2e689f84e5 (patch) | |
tree | 9f6bc802bebe3e357d3723f279fbbd324afe88f8 /src/interfaces/jdbc/org/postgresql/jdbc3/AbstractJdbc3Statement.java | |
parent | ce90c0f5049850ebe572e44b87f33c379045aa23 (diff) | |
download | postgresql-0671b65b8188ba9a7440ec145bf93e2e689f84e5.tar.gz |
Applied patch from Kim Ho at redhat to improve boolean and bit handling
in the jdbc driver
Modified Files:
jdbc/org/postgresql/jdbc1/AbstractJdbc1Statement.java
jdbc/org/postgresql/jdbc3/AbstractJdbc3Statement.java
Diffstat (limited to 'src/interfaces/jdbc/org/postgresql/jdbc3/AbstractJdbc3Statement.java')
-rw-r--r-- | src/interfaces/jdbc/org/postgresql/jdbc3/AbstractJdbc3Statement.java | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/interfaces/jdbc/org/postgresql/jdbc3/AbstractJdbc3Statement.java b/src/interfaces/jdbc/org/postgresql/jdbc3/AbstractJdbc3Statement.java index 9db54ae215..25a6a003c6 100644 --- a/src/interfaces/jdbc/org/postgresql/jdbc3/AbstractJdbc3Statement.java +++ b/src/interfaces/jdbc/org/postgresql/jdbc3/AbstractJdbc3Statement.java @@ -5,7 +5,7 @@ import java.math.BigDecimal; import java.sql.*; import java.util.Calendar; -/* $Header: /cvsroot/pgsql/src/interfaces/jdbc/org/postgresql/jdbc3/Attic/AbstractJdbc3Statement.java,v 1.2 2002/09/06 21:23:06 momjian Exp $ +/* $Header: /cvsroot/pgsql/src/interfaces/jdbc/org/postgresql/jdbc3/Attic/AbstractJdbc3Statement.java,v 1.3 2003/09/17 05:07:38 barry Exp $ * This class defines methods of the jdbc3 specification. This class extends * org.postgresql.jdbc2.AbstractJdbc2Statement which provides the jdbc2 * methods. The real Statement class (for jdbc2) is org.postgresql.jdbc3.Jdbc3Statement @@ -1359,5 +1359,16 @@ public abstract class AbstractJdbc3Statement extends org.postgresql.jdbc2.Abstra { throw org.postgresql.Driver.notImplemented(); } + + public void setObject(int parameterIndex, Object x, int targetSqlType, int scale) throws SQLException + { + switch (targetSqlType) + { + case Types.BOOLEAN: + super.setObject(parameterIndex, x, Types.BIT, scale); + default: + super.setObject(parameterIndex, x, targetSqlType, scale); + } + } } |