Skip to content

Commit

Permalink
Disable supports_statement_cache (#249)
Browse files Browse the repository at this point in the history
* refactor(dialect): disable supports_statement_cache

* Update CHANGES.rst
  • Loading branch information
Brooke-white committed May 10, 2022
1 parent 24f0abb commit 065833c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CHANGES.rst
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
0.8.10 (unreleased)
-------------------

- Nothing changed yet.
- Support HLLSKETCH Redshift datatypes
(`Pull #246 <https://github.com/sqlalchemy-redshift/sqlalchemy-redshift/pull/246>`_)
- Disable supports_statement_cache
(`Pull #249 <https://github.com/sqlalchemy-redshift/sqlalchemy-redshift/pull/249>`_)

0.8.9 (2021-12-15)
------------------
Expand Down
3 changes: 3 additions & 0 deletions sqlalchemy_redshift/dialect.py
Original file line number Diff line number Diff line change
Expand Up @@ -555,6 +555,9 @@ class RedshiftDialectMixin(DefaultDialect):

name = 'redshift'
max_identifier_length = 127
# explicitly disables statement cache to disable warnings in logs
# ref: https://docs.sqlalchemy.org/en/14/core/connections.html#caching-for-third-party-dialects
supports_statement_cache = False

statement_compiler = RedshiftCompiler
ddl_compiler = RedshiftDDLCompiler
Expand Down

0 comments on commit 065833c

Please sign in to comment.