summaryrefslogtreecommitdiff
path: root/test/sql/select.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/sql/select.py')
-rw-r--r--test/sql/select.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/sql/select.py b/test/sql/select.py
index 06679e956..77926b421 100644
--- a/test/sql/select.py
+++ b/test/sql/select.py
@@ -888,6 +888,13 @@ SELECT thirdtable.userid FROM thirdtable)"
"SELECT myothertable.otherid FROM myothertable EXCEPT SELECT thirdtable.userid FROM thirdtable \
UNION SELECT mytable.myid FROM mytable"
)
+
+ # test unions working with non-oid selectables
+ s = select([column('foo'), column('bar')])
+ s = union(s, s)
+ s = union(s, s)
+ self.assert_compile(s, "SELECT foo, bar UNION SELECT foo, bar UNION (SELECT foo, bar UNION SELECT foo, bar)")
+
@testing.uses_deprecated('//get_params')
def test_binds(self):