diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2020-02-22 10:22:18 -0500 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2020-02-22 11:02:56 -0500 |
commit | ffc375d1f02205838485dd1e3e181037b2c0a580 (patch) | |
tree | 8fc6312600078cead3a0e8287f536c4fa4c31303 /lib/sqlalchemy/sql/compiler.py | |
parent | f559f378c47811b5528ad1769cb86925e85fd1e5 (diff) | |
download | sqlalchemy-ffc375d1f02205838485dd1e3e181037b2c0a580.tar.gz |
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
Diffstat (limited to 'lib/sqlalchemy/sql/compiler.py')
-rw-r--r-- | lib/sqlalchemy/sql/compiler.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sqlalchemy/sql/compiler.py b/lib/sqlalchemy/sql/compiler.py index 2e1809b07..04ae2532b 100644 --- a/lib/sqlalchemy/sql/compiler.py +++ b/lib/sqlalchemy/sql/compiler.py @@ -682,7 +682,7 @@ class SQLCompiler(Compiled): # compile INSERT/UPDATE defaults/sequences inlined (no pre- # execute) - self.inline = inline or getattr(statement, "inline", False) + self.inline = inline or getattr(statement, "_inline", False) self.linting = linting |