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

Commit 9af777e

Browse files
committed
cast to bigint, not unsigned in mysql
1 parent 5ffde97 commit 9af777e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

data_diff/databases/mysql.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def import_mysql():
4848
@attrs.define(frozen=False)
4949
class Mixin_MD5(AbstractMixin_MD5):
5050
def md5_as_int(self, s: str) -> str:
51-
return f"cast(conv(substring(md5({s}), {1+MD5_HEXDIGITS-CHECKSUM_HEXDIGITS}), 16, 10) as unsigned) - {CHECKSUM_OFFSET}"
51+
return f"cast(conv(substring(md5({s}), {1+MD5_HEXDIGITS-CHECKSUM_HEXDIGITS}), 16, 10) as bigint) - {CHECKSUM_OFFSET}"
5252

5353

5454
@attrs.define(frozen=False)

0 commit comments

Comments
 (0)