View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0004812||SymmetricDS||Improvement||public||2021-02-05 07:11||2021-02-05 07:11|
|Summary||0004812: NULL and empty string should be considered as equal for Oracle|
|Description||Oracle consider empty string as null. It is impossible to insert empty string into varchar2 field, it will be replaced by null. See here:|
"Oracle Database treats a character value with a length of zero as null"
But other rdbms can insert empty string in text filelds. It can leads to mistakes during conflict resolution.
|Steps To Reproduce||Source database is posgres, destination - oracle. Conflict resolution is configured. From oracle to postgres - FALLBACK. From postgres to oracle - IGNORE.|
1. Record updates in postgres. New value of text field is empty string now. SymmetricDS in oracle accept this value, but rdbms converts it to NULL.
2. The same record updates or deletes in postgres. SymmetricDS in oracle compares old value of text field from postgres (empty string) and value of varchar2 field (null). Empty string is not equal to null, conflict detected, update or delete is rejected. Table becomes out of sync.