~ubuntu-branches/ubuntu/oneiric/libpgjava/oneiric

« back to all changes in this revision

Viewing changes to debian/patches/01_getInfo_exception_fix.patch

  • Committer: Bazaar Package Importer
  • Author(s): Arnaud Vandyck
  • Date: 2005-04-21 14:25:11 UTC
  • mfrom: (1.2.1 upstream) (2.1.1 warty)
  • Revision ID: james.westby@ubuntu.com-20050421142511-wibh5vc31fkrorx7
Tags: 7.4.7-3
Built with sources...

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
--- src/interfaces/jdbc/org/postgresql/jdbc1/AbstractJdbc1DatabaseMetaData.java.orig
 
2
+++ src/interfaces/jdbc/org/postgresql/jdbc1/AbstractJdbc1DatabaseMetaData.java
 
3
@@ -3620,8 +3620,11 @@
 
4
                        " NULL AS FILTER_CONDITION "+
 
5
                        from+
 
6
                        " WHERE ct.oid=i.indrelid AND ci.oid=i.indexrelid AND a.attrelid=ci.oid AND ci.relam=am.oid "+
 
7
-                       where+
 
8
-                       " AND ct.relname = '"+escapeQuotes(tableName)+"' ";
 
9
+                       where;
 
10
+
 
11
+               if (tableName != null && ! "".equals(tableName)) {
 
12
+                       sql += " AND ct.relname = '"+escapeQuotes(tableName)+"' ";
 
13
+               }
 
14
 
 
15
                if (unique) {
 
16
                        sql += " AND i.indisunique ";