This commit is contained in:
ikatyal2110 2026-07-14 09:48:54 -05:00 committed by GitHub
commit f8ca2e4347
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 1 deletions

View file

@ -5214,7 +5214,7 @@ def _decode_default_value(value: str) -> object:
if value.startswith("'") and value.endswith("'"):
# It's a string
return value[1:-1]
if value.isdigit():
if re.fullmatch(r"-?\d+", value):
# It's an integer
return int(value)
if value.startswith("X'") and value.endswith("'"):

View file

@ -309,6 +309,7 @@ def test_table_strict(fresh_db, create_table, expected_strict):
"value",
(
1,
-5,
1.3,
"foo",
True,