[libpostgresql-jdbc-java] 04/09: The commit extending support for DBMD.getColumns to include JDBC 3 and 4 specific results was busted for 7.2 servers. Need to join to pg_type.
Emmanuel Bourg
ebourg-guest at moszumanska.debian.org
Mon Jan 9 10:20:46 UTC 2017
This is an automated email from the git hooks/post-receive script.
ebourg-guest pushed a commit to tag REL8_3_605
in repository libpostgresql-jdbc-java.
commit 24b0dac3925188fbf3604c5067eb2ad0a6ae9fcc
Author: Kris Jurka <books at ejurka.com>
Date: Thu Mar 12 03:34:35 2009 +0000
The commit extending support for DBMD.getColumns to include JDBC
3 and 4 specific results was busted for 7.2 servers. Need to join
to pg_type.
---
org/postgresql/jdbc2/AbstractJdbc2DatabaseMetaData.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/org/postgresql/jdbc2/AbstractJdbc2DatabaseMetaData.java b/org/postgresql/jdbc2/AbstractJdbc2DatabaseMetaData.java
index aa7d111..45bba7a 100644
--- a/org/postgresql/jdbc2/AbstractJdbc2DatabaseMetaData.java
+++ b/org/postgresql/jdbc2/AbstractJdbc2DatabaseMetaData.java
@@ -3,7 +3,7 @@
* Copyright (c) 2004-2008, PostgreSQL Global Development Group
*
* IDENTIFICATION
-* $PostgreSQL: pgjdbc/org/postgresql/jdbc2/AbstractJdbc2DatabaseMetaData.java,v 1.44 2008/01/08 06:56:28 jurka Exp $
+* $PostgreSQL: pgjdbc/org/postgresql/jdbc2/AbstractJdbc2DatabaseMetaData.java,v 1.44.2.1 2008/11/07 09:11:48 jurka Exp $
*
*-------------------------------------------------------------------------
*/
@@ -2269,6 +2269,7 @@ public abstract class AbstractJdbc2DatabaseMetaData
sql = "SELECT NULL::text AS nspname,c.relname,a.attname,a.atttypid,a.attnotnull,a.atttypmod,a.attlen,a.attnum,def.adsrc,dsc.description,NULL::oid AS typbasetype,t.typtype " +
" FROM pg_class c " +
" JOIN pg_attribute a ON (a.attrelid=c.oid) " +
+ " JOIN pg_type t ON (a.atttypid = t.oid) " +
" LEFT JOIN pg_attrdef def ON (a.attrelid=def.adrelid AND a.attnum = def.adnum) " +
" LEFT JOIN pg_description dsc ON (c.oid=dsc.objoid AND a.attnum = dsc.objsubid) " +
" LEFT JOIN pg_class dc ON (dc.oid=dsc.classoid AND dc.relname='pg_class') " +
--
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