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

14 → 12 checksum digits to support mssql #718

Merged
merged 1 commit into from
Oct 2, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions data_diff/databases/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -1140,8 +1140,7 @@ def is_autocommit(self) -> bool:
return False


# TODO FYI mssql md5_as_int currently requires this to be reduced
CHECKSUM_HEXDIGITS = 14 # Must be 15 or lower, otherwise SUM() overflows
CHECKSUM_HEXDIGITS = 12 # Must be 12 or lower, otherwise SUM() overflows
MD5_HEXDIGITS = 32

_CHECKSUM_BITSIZE = CHECKSUM_HEXDIGITS << 2
Expand Down