summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/testing
diff options
context:
space:
mode:
authormike bayer <mike_mp@zzzcomputing.com>2022-10-25 02:53:12 +0000
committerGerrit Code Review <gerrit@ci3.zzzcomputing.com>2022-10-25 02:53:12 +0000
commit37b29b58cb3e1b0715711327724166b0fb991c70 (patch)
tree20f18f1397bdbda172d5ec8f46da02835169bf46 /lib/sqlalchemy/testing
parent5e8fd3239394a7737ae859b0b3b1b7ce3d821564 (diff)
parentb1cd6e4295b07e01983deb2845f6e22a059f5b76 (diff)
downloadsqlalchemy-37b29b58cb3e1b0715711327724166b0fb991c70.tar.gz
Merge "add Oracle-specific parameter escapes for expanding params" into main
Diffstat (limited to 'lib/sqlalchemy/testing')
-rw-r--r--lib/sqlalchemy/testing/suite/test_dialect.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/sqlalchemy/testing/suite/test_dialect.py b/lib/sqlalchemy/testing/suite/test_dialect.py
index efad81930..33e395c48 100644
--- a/lib/sqlalchemy/testing/suite/test_dialect.py
+++ b/lib/sqlalchemy/testing/suite/test_dialect.py
@@ -379,6 +379,8 @@ class DifficultParametersTest(fixtures.TestBase):
("par(ens)",),
("percent%(ens)yah",),
("col:ons",),
+ ("_starts_with_underscore",),
+ ("dot.s",),
("more :: %colons%",),
("/slashes/",),
("more/slashes",),
@@ -414,6 +416,13 @@ class DifficultParametersTest(fixtures.TestBase):
# name works as the key from cursor.description
eq_(row._mapping[name], "some name")
+ # use expanding IN
+ stmt = select(t.c[name]).where(
+ t.c[name].in_(["some name", "some other_name"])
+ )
+
+ row = connection.execute(stmt).first()
+
class ReturningGuardsTest(fixtures.TablesTest):
"""test that the various 'returning' flags are set appropriately"""