Open nj1973 opened 1 year ago
@nj1973 A potential option would be to implement an alternative SQLA standard_hash
function for Oracle < 11g that calls ora_hash
instead of standard_hash
. I believe ora_hash
existed in 10g, correct?
Yes that function is on 10g. I initially thought the same but it gives a different result to standard hash:
SQL> select standard_hash('Hello', 'SHA256') from dual;
STANDARD_HASH('HELLO','SHA256')
----------------------------------------------------------------
185F8DB32271FE25F561A6FC938B2E264306EC304EDA518007D1764826381969
SQL> select ora_hash('Hello') from dual;
ORA_HASH('HELLO')
-----------------
3822733595
I should have guessed you'd already looked at this approach. Thanks @nj1973
Can I be assigned this issue?
When using
-hash
the generated SQL uses a STANDARD_HASH() SQL function. Test table:Command:
Exception:
The problem expression is:
Oracle 11g:
Oracle > 11g:
There is no standard alternative for 11g so I think our options are:
-hash
is not valid for Oracle versions prior to 12c-hash
is used on Oracle versions prior to 12c