mirror of
https://github.com/postgres/postgres.git
synced 2025-07-31 22:04:40 +03:00
change table name to lower case in getColumns
This commit is contained in:
@ -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
|
|||||||
|
|
||||||
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;
|
|||||||
/*
|
/*
|
||||||
* 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
|
|||||||
|
|
||||||
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("%"))
|
||||||
|
Reference in New Issue
Block a user