|
46 | 46 | SnowflakeExecutionContext,
|
47 | 47 | SnowflakeIdentifierPreparer,
|
48 | 48 | SnowflakeTypeCompiler,
|
49 |
| - RESERVED_WORDS, |
50 | 49 | )
|
51 | 50 | from .custom_types import (
|
52 | 51 | _CUSTOM_DECIMAL,
|
@@ -320,7 +319,7 @@ def get_check_constraints(self, connection, table_name, schema, **kw):
|
320 | 319 |
|
321 | 320 | @reflection.cache
|
322 | 321 | def _get_table_primary_keys(self, connection, schema, table_name, **kw):
|
323 |
| - if table_name.upper() in RESERVED_WORDS: |
| 322 | + if table_name in SnowflakeIdentifierPreparer.reserved_words: |
324 | 323 | fully_qualified_path = self._denormalize_quote_join(schema, table_name)
|
325 | 324 | result = connection.execute(
|
326 | 325 | text(
|
@@ -389,7 +388,7 @@ def get_pk_constraint(self, connection, table_name, schema=None, **kw):
|
389 | 388 |
|
390 | 389 | @reflection.cache
|
391 | 390 | def _get_table_unique_constraints(self, connection, schema, table_name, **kw):
|
392 |
| - if table_name.upper() in RESERVED_WORDS: |
| 391 | + if table_name in SnowflakeIdentifierPreparer.reserved_words: |
393 | 392 | fully_qualified_path = self._denormalize_quote_join(schema, table_name)
|
394 | 393 | result = connection.execute(
|
395 | 394 | text(
|
@@ -472,7 +471,7 @@ def get_unique_constraints(self, connection, table_name, schema, **kw):
|
472 | 471 | @reflection.cache
|
473 | 472 | def _get_table_foreign_keys(self, connection, schema, table_name, **kw):
|
474 | 473 | _, current_schema = self._current_database_schema(connection, **kw)
|
475 |
| - if table_name.upper() in RESERVED_WORDS: |
| 474 | + if table_name in SnowflakeIdentifierPreparer.reserved_words: |
476 | 475 | fully_qualified_path = self._denormalize_quote_join(schema, table_name)
|
477 | 476 | result = connection.execute(
|
478 | 477 | text(
|
|
0 commit comments