|
4 | 4 | from sqlalchemy.testing.suite import CompoundSelectTest as _CompoundSelectTest |
5 | 5 | from sqlalchemy.testing.suite import CTETest as _CTETest |
6 | 6 | from sqlalchemy.testing.suite import DifficultParametersTest as _DifficultParametersTest |
| 7 | +from sqlalchemy.testing.suite import ( |
| 8 | + BizarroCharacterFKResolutionTest as _BizarroCharacterFKResolutionTest, |
| 9 | +) |
7 | 10 | from sqlalchemy.testing import fixtures |
8 | 11 | from sqlalchemy.testing.assertions import eq_ |
9 | 12 | from sqlalchemy.testing import config |
@@ -262,3 +265,19 @@ def test_expect_bytes(self): |
262 | 265 | select(self.tables.data), |
263 | 266 | [(SomeType.FIRST,), (SomeType.SECOND,), (None,)], |
264 | 267 | ) |
| 268 | + |
| 269 | + |
| 270 | +class BizarroCharacterFKResolutionTest(_BizarroCharacterFKResolutionTest): |
| 271 | + @testing.combinations( |
| 272 | + ("id",), ("(3)",), ("col%p",), ("[brack]",), argnames="columnname" |
| 273 | + ) |
| 274 | + @testing.variation("use_composite", [True, False]) |
| 275 | + @testing.combinations( |
| 276 | + ("plain",), |
| 277 | + # ("(2)",), not in IRIS |
| 278 | + ("per % cent",), |
| 279 | + ("[brackets]",), |
| 280 | + argnames="tablename", |
| 281 | + ) |
| 282 | + def test_fk_ref(self, connection, metadata, use_composite, tablename, columnname): |
| 283 | + super().test_fk_ref(connection, metadata, use_composite, tablename, columnname) |
0 commit comments