Skip to content

Commit da547e4

Browse files
betodealmeidamistercrunch
authored andcommitted
Fix reserved keyword (#112)
1 parent 992a3d8 commit da547e4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pydruid/db/sqlalchemy.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,13 +134,13 @@ def get_schema_names(self, connection, **kwargs):
134134

135135
def has_table(self, connection, table_name, schema=None):
136136
query = """
137-
SELECT COUNT(*) > 0 AS exists
137+
SELECT COUNT(*) > 0 AS exists_
138138
FROM INFORMATION_SCHEMA.TABLES
139139
WHERE TABLE_NAME = '{table_name}'
140140
""".format(table_name=table_name)
141141

142142
result = connection.execute(query)
143-
return result.fetchone().exists
143+
return result.fetchone().exists_
144144

145145
def get_table_names(self, connection, schema=None, **kwargs):
146146
query = "SELECT TABLE_NAME FROM INFORMATION_SCHEMA.TABLES"

0 commit comments

Comments
 (0)