mirror of https://github.com/apache/druid.git
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)
|
public boolean tableExists(final Handle handle, final String tableName)
|
||||||
{
|
{
|
||||||
return !handle.createQuery(
|
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)
|
.bind("tableName", tableName)
|
||||||
.map(StringMapper.FIRST)
|
.map(StringMapper.FIRST)
|
||||||
|
|
Loading…
Reference in New Issue