mirror of https://github.com/apache/druid.git
Merge pull request #2648 from chtefi/master
Ignore case when testing for table existence
This commit is contained in:
commit
02805a74a1
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue