Skip to content

Commit 1714795

Browse files
DeanLaebyhr
authored andcommitted
Disable supports_statement_cache in sqlalchemy dialect
on sqlalchemy>=1.4 a warning is raised if supports_statement_cache is not set. To avoid the warning, supports_statement_cache is set to False. more testing is required to set this to True.
1 parent e21b06d commit 1714795

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

trino/sqlalchemy/dialect.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,11 @@ class TrinoDialect(DefaultDialect):
5555
supports_multivalues_insert = True
5656
postfetch_lastrowid = False
5757

58+
# Caching
59+
# Warnings are generated by SQLAlchmey if this flag is not explicitly set
60+
# and tests are needed before being enabled
61+
supports_statement_cache = False
62+
5863
@classmethod
5964
def dbapi(cls):
6065
"""

0 commit comments

Comments
 (0)