diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2013-11-28 12:37:15 -0500 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2013-11-28 12:37:15 -0500 |
commit | bb60a8ad946dd331f546f06a156b7ebb87d1709d (patch) | |
tree | d530604307af524dc87355811fd103718114c258 /test/sql/test_compiler.py | |
parent | 106e793d0573b5bcd1ddee549bca1a546aa13972 (diff) | |
download | sqlalchemy-bb60a8ad946dd331f546f06a156b7ebb87d1709d.tar.gz |
- work in progress, will squash
Diffstat (limited to 'test/sql/test_compiler.py')
-rw-r--r-- | test/sql/test_compiler.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/sql/test_compiler.py b/test/sql/test_compiler.py index fbb88924d..26cd30026 100644 --- a/test/sql/test_compiler.py +++ b/test/sql/test_compiler.py @@ -1120,6 +1120,12 @@ class SelectTest(fixtures.TestBase, AssertsCompiledSQL): "FROM mytable WHERE mytable.myid = %(myid_1)s FOR SHARE NOWAIT", dialect=postgresql.dialect()) + self.assert_compile( + table1.select(table1.c.myid == 7).with_for_update(of=table1.c.myid), + "SELECT mytable.myid, mytable.name, mytable.description " + "FROM mytable WHERE mytable.myid = %(myid_1)s FOR UPDATE OF mytable", + dialect=postgresql.dialect()) + def test_alias(self): # test the alias for a table1. column names stay the same, # table name "changes" to "foo". |