From: Jim Fulton Date: Mon, 17 May 2021 15:29:54 +0000 (-0400) Subject: Use type_ when creating literals in _LiteralRoundTripFixture X-Git-Tag: rel_1_4_16~23^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a52b5efda02708dc655da11b78d4e15f32785fa4;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git Use type_ when creating literals in _LiteralRoundTripFixture Fixes #6496 by passing the `type_` argument passed to `run` to `literal`. This pull request is: - [ ] A documentation / typographical error fix - Good to go, no issue or tests are needed - [X] A short code fix - please include the issue number, and create an issue if none exists, which must include a complete example of the issue. one line code fixes without an issue and demonstration will not be accepted. - Please include: `Fixes: #` in the commit message - please include tests. one line code fixes without tests will not be accepted. - [ ] A new feature implementation - please include the issue number, and create an issue if none exists, which must include a complete example of how the feature would look. - Please include: `Fixes: #` in the commit message - please include tests. **Have a nice day!** Closes: #6497 Pull-request: https://github.com/sqlalchemy/sqlalchemy/pull/6497 Pull-request-sha: 5f82408b2c25c7593f7202533dde4e29f045de5d Change-Id: Ieed822c157f91d95fe3a07ea4482a36777539c35 --- diff --git a/lib/sqlalchemy/testing/suite/test_types.py b/lib/sqlalchemy/testing/suite/test_types.py index 468a1660e2..3c4a805735 100644 --- a/lib/sqlalchemy/testing/suite/test_types.py +++ b/lib/sqlalchemy/testing/suite/test_types.py @@ -63,7 +63,7 @@ class _LiteralRoundTripFixture(object): for value in input_: ins = ( t.insert() - .values(x=literal(value)) + .values(x=literal(value, type_)) .compile( dialect=testing.db.dialect, compile_kwargs=dict(literal_binds=True),