[libpostgresql-jdbc-java] 05/09: Support setNull(x, Types.BLOB) and CLOB, reported by Tore Halset.
Emmanuel Bourg
ebourg-guest at moszumanska.debian.org
Mon Jan 9 10:19:11 UTC 2017
This is an automated email from the git hooks/post-receive script.
ebourg-guest pushed a commit to tag REL8_0_311
in repository libpostgresql-jdbc-java.
commit e1da87b759e0f91f73f27b9a2c37870c1dfda8c4
Author: Kris Jurka <books at ejurka.com>
Date: Wed Feb 16 18:30:27 2005 +0000
Support setNull(x, Types.BLOB) and CLOB, reported by Tore Halset.
---
org/postgresql/jdbc2/AbstractJdbc2Statement.java | 6 +++++-
org/postgresql/test/jdbc2/OID74Test.java | 6 +++++-
2 files changed, 10 insertions(+), 2 deletions(-)
diff --git a/org/postgresql/jdbc2/AbstractJdbc2Statement.java b/org/postgresql/jdbc2/AbstractJdbc2Statement.java
index bc568f3..af0c648 100644
--- a/org/postgresql/jdbc2/AbstractJdbc2Statement.java
+++ b/org/postgresql/jdbc2/AbstractJdbc2Statement.java
@@ -3,7 +3,7 @@
* Copyright (c) 2004-2005, PostgreSQL Global Development Group
*
* IDENTIFICATION
-* $PostgreSQL: pgjdbc/org/postgresql/jdbc2/AbstractJdbc2Statement.java,v 1.68.2.2 2005/02/15 08:55:50 jurka Exp $
+* $PostgreSQL: pgjdbc/org/postgresql/jdbc2/AbstractJdbc2Statement.java,v 1.68.2.3 2005/02/15 09:09:31 jurka Exp $
*
*-------------------------------------------------------------------------
*/
@@ -996,6 +996,10 @@ public abstract class AbstractJdbc2Statement implements BaseStatement
oid = Oid.OID;
}
break;
+ case Types.BLOB:
+ case Types.CLOB:
+ oid = Oid.OID;
+ break;
case Types.OTHER:
oid = Oid.INVALID;
break;
diff --git a/org/postgresql/test/jdbc2/OID74Test.java b/org/postgresql/test/jdbc2/OID74Test.java
index a764b11..bf73181 100644
--- a/org/postgresql/test/jdbc2/OID74Test.java
+++ b/org/postgresql/test/jdbc2/OID74Test.java
@@ -3,7 +3,7 @@
* Copyright (c) 2004-2005, PostgreSQL Global Development Group
*
* IDENTIFICATION
-* $PostgreSQL: pgjdbc/org/postgresql/test/jdbc2/OID74Test.java,v 1.9 2004/11/09 08:54:44 jurka Exp $
+* $PostgreSQL: pgjdbc/org/postgresql/test/jdbc2/OID74Test.java,v 1.10 2005/01/11 08:25:48 jurka Exp $
*
*-------------------------------------------------------------------------
*/
@@ -50,6 +50,10 @@ public class OID74Test extends TestCase
PreparedStatement pstmt = conn.prepareStatement("INSERT INTO temp VALUES (?)");
pstmt.setNull(1, Types.VARBINARY);
pstmt.executeUpdate();
+ pstmt.setNull(1, Types.BLOB);
+ pstmt.executeUpdate();
+ pstmt.setNull(1, Types.CLOB);
+ pstmt.executeUpdate();
pstmt.close();
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/libpostgresql-jdbc-java.git
More information about the pkg-java-commits
mailing list