@@ -320,8 +320,8 @@ def get_check_constraints(self, connection, table_name, schema, **kw):
320
320
321
321
@reflection .cache
322
322
def _get_table_primary_keys (self , connection , schema , table_name , ** kw ):
323
- fully_qualified_path = self ._denormalize_quote_join (schema , table_name )
324
323
if table_name .upper () in RESERVED_WORDS :
324
+ fully_qualified_path = self ._denormalize_quote_join (schema , table_name )
325
325
result = connection .execute (
326
326
text (
327
327
f"SHOW /* sqlalchemy:_get_table_primary_keys */PRIMARY KEYS IN TABLE { fully_qualified_path } "
@@ -389,8 +389,8 @@ def get_pk_constraint(self, connection, table_name, schema=None, **kw):
389
389
390
390
@reflection .cache
391
391
def _get_table_unique_constraints (self , connection , schema , table_name , ** kw ):
392
- fully_qualified_path = self ._denormalize_quote_join (schema , table_name )
393
392
if table_name .upper () in RESERVED_WORDS :
393
+ fully_qualified_path = self ._denormalize_quote_join (schema , table_name )
394
394
result = connection .execute (
395
395
text (
396
396
f"SHOW /* sqlalchemy:_get_table_unique_constraints */ UNIQUE KEYS IN TABLE { fully_qualified_path } "
@@ -471,9 +471,9 @@ def get_unique_constraints(self, connection, table_name, schema, **kw):
471
471
472
472
@reflection .cache
473
473
def _get_table_foreign_keys (self , connection , schema , table_name , ** kw ):
474
- fully_qualified_path = self ._denormalize_quote_join (schema , table_name )
475
474
_ , current_schema = self ._current_database_schema (connection , ** kw )
476
475
if table_name .upper () in RESERVED_WORDS :
476
+ fully_qualified_path = self ._denormalize_quote_join (schema , table_name )
477
477
result = connection .execute (
478
478
text (
479
479
f"SHOW /* sqlalchemy:_get_table_foreign_keys */ IMPORTED KEYS IN TABLE { fully_qualified_path } "
0 commit comments