summaryrefslogtreecommitdiff
path: root/test/sql/labels.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/sql/labels.py')
-rw-r--r--test/sql/labels.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/sql/labels.py b/test/sql/labels.py
index 0b3957619..0302fee78 100644
--- a/test/sql/labels.py
+++ b/test/sql/labels.py
@@ -30,5 +30,15 @@ class LongLabelsTest(testbase.PersistTest):
(4, "data4"),
]
+ def test_colbinds(self):
+ r = table1.select(table1.c.this_is_the_primary_key_column == 4).execute()
+ assert r.fetchall() == [(4, "data4")]
+
+ r = table1.select(or_(
+ table1.c.this_is_the_primary_key_column == 4,
+ table1.c.this_is_the_primary_key_column == 2
+ )).execute()
+ assert r.fetchall() == [(2, "data2"), (4, "data4")]
+
if __name__ == '__main__':
testbase.main() \ No newline at end of file