summaryrefslogtreecommitdiff
path: root/test/dialect/test_oracle.py
diff options
context:
space:
mode:
authorSergey Skopin <prn.s_skopin@wargaming.net>2016-05-31 12:59:47 +0300
committerSergey Skopin <prn.s_skopin@wargaming.net>2016-05-31 12:59:47 +0300
commit9b4e47bc6471d68c135817f39625aa471804090e (patch)
tree72003fa1448408015a8070a4419a1b9606ce9b3b /test/dialect/test_oracle.py
parentc124fa36d5af2c85c87c51d24e92387adffbe3d2 (diff)
downloadsqlalchemy-pr/279.tar.gz
Add 'FOR NO KEY UPDATE' supportpr/279
Diffstat (limited to 'test/dialect/test_oracle.py')
-rw-r--r--test/dialect/test_oracle.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/dialect/test_oracle.py b/test/dialect/test_oracle.py
index 1f3e63040..b715667f9 100644
--- a/test/dialect/test_oracle.py
+++ b/test/dialect/test_oracle.py
@@ -334,6 +334,12 @@ class CompileTest(fixtures.TestBase, AssertsCompiledSQL):
"FROM mytable WHERE mytable.myid = :myid_1 FOR UPDATE OF "
"mytable.myid, mytable.name NOWAIT")
+ self.assert_compile(
+ table1.select(table1.c.myid == 7).
+ with_for_update(no_key=True),
+ "SELECT mytable.myid, mytable.name, mytable.description "
+ "FROM mytable WHERE mytable.myid = :myid_1 FOR UPDATE")
+
ta = table1.alias()
self.assert_compile(
ta.select(ta.c.myid == 7).