Skip to content

Commit 44e4f51

Browse files
committed
use sql.null() instead of sql.literal_column('NULL')
1 parent 40af749 commit 44e4f51

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • lib/sqlalchemy/dialects/oracle

lib/sqlalchemy/dialects/oracle/base.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2054,12 +2054,12 @@ def _table_options_query(
20542054
(
20552055
dictionary.all_tables.c.compression
20562056
if self._supports_table_compression
2057-
else sql.literal_column("NULL").label("compression")
2057+
else sql.null().label("compression")
20582058
),
20592059
(
20602060
dictionary.all_tables.c.compress_for
20612061
if self._supports_table_compress_for
2062-
else sql.literal_column("NULL").label("compress_for")
2062+
else sql.null().label("compress_for")
20632063
),
20642064
).where(dictionary.all_tables.c.owner == owner)
20652065
if has_filter_names:

0 commit comments

Comments
 (0)