diff options
| author | mike bayer <mike_mp@zzzcomputing.com> | 2020-02-22 17:57:17 +0000 |
|---|---|---|
| committer | Gerrit Code Review <gerrit@bbpush.zzzcomputing.com> | 2020-02-22 17:57:17 +0000 |
| commit | ca16c53651f819e9587ed29d7d1d7d937e7f25ce (patch) | |
| tree | f85ea34dc4274c1821d0203879eb1e2c5c87e708 /test/sql/test_update.py | |
| parent | f1eb2921c762fef292a07e043b73881aaae476fa (diff) | |
| parent | ffc375d1f02205838485dd1e3e181037b2c0a580 (diff) | |
| download | sqlalchemy-ca16c53651f819e9587ed29d7d1d7d937e7f25ce.tar.gz | |
Merge "Repair inline flag"
Diffstat (limited to 'test/sql/test_update.py')
| -rw-r--r-- | test/sql/test_update.py | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/test/sql/test_update.py b/test/sql/test_update.py index 68db6270f..78eecdf21 100644 --- a/test/sql/test_update.py +++ b/test/sql/test_update.py @@ -329,10 +329,19 @@ class UpdateTest(_UpdateFromTestBase, fixtures.TablesTest, AssertsCompiledSQL): ) self.assert_compile( - t.update(inline=True, values={"col3": "foo"}), + t.update().values({"col3": "foo"}), "UPDATE test SET col1=foo(:foo_1), col2=(SELECT " "coalesce(max(foo.id)) AS coalesce_1 FROM foo), " "col3=:col3", + inline_flag=False, + ) + + self.assert_compile( + t.update().inline().values({"col3": "foo"}), + "UPDATE test SET col1=foo(:foo_1), col2=(SELECT " + "coalesce(max(foo.id)) AS coalesce_1 FROM foo), " + "col3=:col3", + inline_flag=True, ) def test_update_1(self): |
