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

Commit c56e6e0

Browse files
committed
feat: fix a bug for md5_as_hex for oracle
1 parent b9d526f commit c56e6e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

data_diff/databases/oracle.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ def md5_as_int(self, s: str) -> str:
138138
return f"to_number(substr(standard_hash({s}, 'MD5'), {1+MD5_HEXDIGITS-CHECKSUM_HEXDIGITS}), 'xxxxxxxxxxxxxxx') - {CHECKSUM_OFFSET}"
139139

140140
def md5_as_hex(self, s: str) -> str:
141-
return f"standard_hash({s}, 'MD5'"
141+
return f"standard_hash({s}, 'MD5')"
142142

143143
def normalize_uuid(self, value: str, coltype: ColType_UUID) -> str:
144144
# Cast is necessary for correct MD5 (trimming not enough)

0 commit comments

Comments
 (0)