We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cb1696c commit e60dee1Copy full SHA for e60dee1
1 file changed
tests/test_generator_tables.py
@@ -1219,8 +1219,10 @@ def test_identity_column(generator: CodeGenerator) -> None:
1219
1220
1221
def test_identity_column_decimal_values(generator: CodeGenerator) -> None:
1222
+ # MSSQL reflects Identity column parameters (start, increment) as Decimal
1223
+ # values instead of integers. This test ensures those are serialized correctly.
1224
identity = Identity(start=1, increment=2)
- # Simulate database reflection returning Decimal values
1225
+ # Simulate database reflection returning Decimal values (as MSSQL does)
1226
setattr(identity, "start", Decimal("1"))
1227
setattr(identity, "increment", Decimal("2"))
1228
Table(
0 commit comments