summaryrefslogtreecommitdiff
path: root/test/dialect/postgresql/test_compiler.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/dialect/postgresql/test_compiler.py')
-rw-r--r--test/dialect/postgresql/test_compiler.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/dialect/postgresql/test_compiler.py b/test/dialect/postgresql/test_compiler.py
index 5c4d72c67..6133ab482 100644
--- a/test/dialect/postgresql/test_compiler.py
+++ b/test/dialect/postgresql/test_compiler.py
@@ -1571,6 +1571,13 @@ class DistinctOnTest(fixtures.TestBase, AssertsCompiledSQL):
"SELECT DISTINCT ON (t.a) t.id, t.a, t.b FROM t"
)
+ def test_literal_binds(self):
+ self.assert_compile(
+ select([self.table]).distinct(self.table.c.a == 10),
+ "SELECT DISTINCT ON (t.a = 10) t.id, t.a, t.b FROM t",
+ literal_binds=True
+ )
+
def test_query_plain(self):
sess = Session()
self.assert_compile(