summaryrefslogtreecommitdiff
path: root/test/sql
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2021-07-11 19:40:59 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2021-07-11 19:40:59 -0400
commit2aae37f93b413176d683259e0bc712728af931db (patch)
tree8b46b2b4e60998a3131040be32c66a6d54cd93b3 /test/sql
parentca52e87268fec966f6005b1e4aa30206ae895e9e (diff)
downloadsqlalchemy-2aae37f93b413176d683259e0bc712728af931db.tar.gz
represent tablesample.sampling as FunctionElement in all cases
Fixed regression where the :func:`_sql.tablesample` construct would fail to be executable when constructed given a floating-point sampling value not embedded within a SQL function. Fixes: #6735 Change-Id: I557bcd4bdbffc4329ad69d5659ba99b1c8deb554
Diffstat (limited to 'test/sql')
-rw-r--r--test/sql/test_compare.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/sql/test_compare.py b/test/sql/test_compare.py
index e96a47553..365ed52b2 100644
--- a/test/sql/test_compare.py
+++ b/test/sql/test_compare.py
@@ -504,6 +504,7 @@ class CoreFixtures(object):
.union_all(select(table_a.c.b)),
select(table_a.c.a).lateral(),
select(table_a.c.a).lateral(name="bar"),
+ table_a.tablesample(0.75),
table_a.tablesample(func.bernoulli(1)),
table_a.tablesample(func.bernoulli(1), seed=func.random()),
table_a.tablesample(func.bernoulli(1), seed=func.other_random()),