Skip to content
This repository was archived by the owner on May 17, 2024. It is now read-only.

Commit 6df9d37

Browse files
committed
A better error message
1 parent 101707b commit 6df9d37

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

data_diff/database.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,8 @@ def _parse_type(
301301
return cls(precision=0)
302302

303303
elif issubclass(cls, Decimal):
304+
if numeric_scale is None:
305+
raise ValueError(f"{self.name}: Unexpected numeric_scale is NULL, for column of type {type_repr}.")
304306
return cls(precision=numeric_scale)
305307

306308
assert issubclass(cls, Float)

0 commit comments

Comments
 (0)