diff options
| author | mike bayer <mike_mp@zzzcomputing.com> | 2022-12-05 16:29:52 +0000 |
|---|---|---|
| committer | Gerrit Code Review <gerrit@ci3.zzzcomputing.com> | 2022-12-05 16:29:52 +0000 |
| commit | 679b3f7e100e40b36d6d0abb947bd62589ef3e05 (patch) | |
| tree | d51f54c74ef3e542b461f6a9c8c35e0edbe462e2 /test/dialect/postgresql | |
| parent | 422d8d3bcbf2b60f053ab76c3fc29f33242ccf4b (diff) | |
| parent | 06c234d037bdab48e716d6c5f5dc200095269474 (diff) | |
| download | sqlalchemy-679b3f7e100e40b36d6d0abb947bd62589ef3e05.tar.gz | |
Merge "Rewrite positional handling, test for "numeric"" into main
Diffstat (limited to 'test/dialect/postgresql')
| -rw-r--r-- | test/dialect/postgresql/test_query.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/dialect/postgresql/test_query.py b/test/dialect/postgresql/test_query.py index 42ec20743..2b32d6db7 100644 --- a/test/dialect/postgresql/test_query.py +++ b/test/dialect/postgresql/test_query.py @@ -990,19 +990,19 @@ class MatchTest(fixtures.TablesTest, AssertsCompiledSQL): "matchtable.title @@ plainto_tsquery(%(title_1)s)", ) - @testing.requires.format_paramstyle + @testing.only_if("+asyncpg") def test_expression_positional(self, connection): matchtable = self.tables.matchtable if self._strs_render_bind_casts(connection): self.assert_compile( matchtable.c.title.match("somstr"), - "matchtable.title @@ plainto_tsquery(%s::VARCHAR(200))", + "matchtable.title @@ plainto_tsquery($1::VARCHAR(200))", ) else: self.assert_compile( matchtable.c.title.match("somstr"), - "matchtable.title @@ plainto_tsquery(%s)", + "matchtable.title @@ plainto_tsquery($1)", ) def test_simple_match(self, connection): |
