]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Repair inline flag
authorMike Bayer <mike_mp@zzzcomputing.com>
Sat, 22 Feb 2020 15:22:18 +0000 (10:22 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sat, 22 Feb 2020 16:02:56 +0000 (11:02 -0500)
commitffc375d1f02205838485dd1e3e181037b2c0a580
tree8fc6312600078cead3a0e8287f536c4fa4c31303
parentf559f378c47811b5528ad1769cb86925e85fd1e5
Repair inline flag

In 9fca5d827d we attempted to deprecate the "inline=True" flag
and add a generative inline() method, however failed to include
any tests and the method was implemented incorrectly such that
it would get overwritten with the boolean flag immediately.

Rename the internal "inline" flag to "_inline" and add test
support both for the method as well as deprecated support
for the flag, including a fixture addition to assert the expected
value of the flag as it generally does not affect the
actual compiled SQL string.

Change-Id: I0450049f17f1f0d91e22d27f1a973a2b6c0e59f7
lib/sqlalchemy/sql/compiler.py
lib/sqlalchemy/sql/dml.py
lib/sqlalchemy/testing/assertions.py
test/sql/test_defaults.py
test/sql/test_deprecations.py
test/sql/test_insert.py
test/sql/test_insert_exec.py
test/sql/test_update.py