Merge pull request #2648 from chtefi/master

Ignore case when testing for table existence
This commit is contained in:
Charles Allen 2016-03-14 13:57:53 -07:00
commit 02805a74a1
1 changed files with 1 additions and 1 deletions

View File

@ -72,7 +72,7 @@ public class PostgreSQLConnector extends SQLMetadataConnector
public boolean tableExists(final Handle handle, final String tableName)
{
return !handle.createQuery(
"SELECT tablename FROM pg_catalog.pg_tables WHERE schemaname = 'public' AND tablename LIKE :tableName"
"SELECT tablename FROM pg_catalog.pg_tables WHERE schemaname = 'public' AND tablename ILIKE :tableName"
)
.bind("tableName", tableName)
.map(StringMapper.FIRST)