mirror of
https://github.com/apache/druid.git
synced 2025-02-09 03:24:55 +00:00
Ignore case when testing for table existence
This commit is contained in:
parent
cf7f6da392
commit
416cb03687
@ -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…
x
Reference in New Issue
Block a user