Commit 106dda29 authored by Dave Cramer's avatar Dave Cramer

change table name to lower case in getColumns

parent 6cfb3ec5
...@@ -13,7 +13,7 @@ import org.postgresql.util.PSQLException; ...@@ -13,7 +13,7 @@ import org.postgresql.util.PSQLException;
/* /*
* This class provides information about the database as a whole. * This class provides information about the database as a whole.
* *
* $Id: DatabaseMetaData.java,v 1.44 2002/03/05 03:02:47 davec Exp $ * $Id: DatabaseMetaData.java,v 1.45 2002/06/06 14:47:52 davec Exp $
* *
* <p>Many of the methods here return lists of information in ResultSets. You * <p>Many of the methods here return lists of information in ResultSets. You
* can use the normal ResultSet methods such as getString and getInt to * can use the normal ResultSet methods such as getString and getInt to
...@@ -1953,12 +1953,12 @@ public class DatabaseMetaData implements java.sql.DatabaseMetaData ...@@ -1953,12 +1953,12 @@ public class DatabaseMetaData implements java.sql.DatabaseMetaData
if ((tableNamePattern != null) && ! tableNamePattern.equals("%")) if ((tableNamePattern != null) && ! tableNamePattern.equals("%"))
{ {
sql.append(" and c.relname like \'" + tableNamePattern + "\'"); sql.append(" and c.relname like \'" + tableNamePattern.toLowerCase() + "\'");
} }
if ((columnNamePattern != null) && ! columnNamePattern.equals("%")) if ((columnNamePattern != null) && ! columnNamePattern.equals("%"))
{ {
sql.append(" and a.attname like \'" + columnNamePattern + "\'"); sql.append(" and a.attname like \'" + columnNamePattern.toLowerCase() + "\'");
} }
sql.append( sql.append(
......
...@@ -15,7 +15,7 @@ import org.postgresql.util.PSQLException; ...@@ -15,7 +15,7 @@ import org.postgresql.util.PSQLException;
/* /*
* This class provides information about the database as a whole. * This class provides information about the database as a whole.
* *
* $Id: DatabaseMetaData.java,v 1.53 2002/06/05 19:12:01 davec Exp $ * $Id: DatabaseMetaData.java,v 1.54 2002/06/06 14:47:52 davec Exp $
* *
* <p>Many of the methods here return lists of information in ResultSets. You * <p>Many of the methods here return lists of information in ResultSets. You
* can use the normal ResultSet methods such as getString and getInt to * can use the normal ResultSet methods such as getString and getInt to
...@@ -2057,7 +2057,7 @@ public class DatabaseMetaData implements java.sql.DatabaseMetaData ...@@ -2057,7 +2057,7 @@ public class DatabaseMetaData implements java.sql.DatabaseMetaData
if ((tableNamePattern != null) && ! tableNamePattern.equals("%")) if ((tableNamePattern != null) && ! tableNamePattern.equals("%"))
{ {
sql.append(" and c.relname like \'" + tableNamePattern + "\'"); sql.append(" and c.relname like \'" + tableNamePattern.toLowerCase() + "\'");
} }
if ((columnNamePattern != null) && ! columnNamePattern.equals("%")) if ((columnNamePattern != null) && ! columnNamePattern.equals("%"))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment