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

Commit 5ed6e18

Browse files
committed
feat: fix a bug for md5_as_hex for oracle
1 parent 2a2d66b commit 5ed6e18

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
@@ -134,7 +134,7 @@ def md5_as_int(self, s: str) -> str:
134134
return f"to_number(substr(standard_hash({s}, 'MD5'), {1+MD5_HEXDIGITS-CHECKSUM_HEXDIGITS}), 'xxxxxxxxxxxxxxx') - {CHECKSUM_OFFSET}"
135135

136136
def md5_as_hex(self, s: str) -> str:
137-
return f"standard_hash({s}, 'MD5'"
137+
return f"standard_hash({s}, 'MD5')"
138138

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

0 commit comments

Comments
 (0)