diff options
| author | Mike Bayer <mike_mp@zzzcomputing.com> | 2014-02-26 15:45:52 -0500 |
|---|---|---|
| committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2014-02-26 15:45:52 -0500 |
| commit | 6aeec027a0fb33348bdb8ec5b448044a67eff7c5 (patch) | |
| tree | f7f1528f6827e1259678904765db296fdd016324 /test/sql/test_update.py | |
| parent | 302ad6228a12fe5cb4c5d332e5bab65ed373bc01 (diff) | |
| download | sqlalchemy-6aeec027a0fb33348bdb8ec5b448044a67eff7c5.tar.gz | |
- Adjusted the logic which applies names to the .c collection when
a no-name :class:`.BindParameter` is received, e.g. via :func:`.sql.literal`
or similar; the "key" of the bind param is used as the key within
.c. rather than the rendered name. Since these binds have "anonymous"
names in any case, this allows individual bound parameters to
have their own name within a selectable if they are otherwise unlabeled.
fixes #2974
Diffstat (limited to 'test/sql/test_update.py')
| -rw-r--r-- | test/sql/test_update.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/sql/test_update.py b/test/sql/test_update.py index 10306372b..a1b64d862 100644 --- a/test/sql/test_update.py +++ b/test/sql/test_update.py @@ -203,7 +203,7 @@ class UpdateTest(_UpdateFromTestBase, fixtures.TablesTest, AssertsCompiledSQL): """ table1 = self.tables.mytable expr = func.foo(table1.c.myid) - assert not hasattr(expr, 'key') + eq_(expr.key, None) self.assert_compile(table1.update().values({expr: 'bar'}), 'UPDATE mytable SET foo(myid)=:param_1') |
