]> git.ipfire.org Git - thirdparty/sqlalchemy/alembic.git/commit
Support sqlalchemy 1.4 exec_driver_sql, text() for strings
authorCaselIT <cfederico87@gmail.com>
Tue, 17 Mar 2020 22:03:32 +0000 (23:03 +0100)
committerMike Bayer <mike_mp@zzzcomputing.com>
Wed, 18 Mar 2020 20:45:29 +0000 (16:45 -0400)
commit4f351a6ca8a6b5fe6718203226805f4e1a02a2db
tree311a185e5cda1a41dcbb02f4a81ed4ed9c82ad9c
parent0753306f9c96b23913f24041b3bf2f74d5dc74b1
Support sqlalchemy 1.4 exec_driver_sql, text() for strings

Adjusted tests so that only connection-explicit execution
is used, along with the use of text() for string invocation.
Tests that are testing explicitly for deprecation warnings
will bypass SQLAlchemy warnings.   Added the RemovedIn20 warning
as an error raise for these two specific deprecation cases.

Co-authored-by: Mike Bayer <mike_mp@zzzcomputing.com>
Change-Id: I4f6b83366329aa95204522c9e99129021d1899fc
12 files changed:
alembic/ddl/postgresql.py
alembic/runtime/migration.py
alembic/testing/__init__.py
alembic/testing/plugin/plugin_base.py
alembic/testing/requirements.py
alembic/util/__init__.py
alembic/util/sqla_compat.py
tests/requirements.py
tests/test_batch.py
tests/test_command.py
tests/test_environment.py
tests/test_postgresql.py