An empty string is NULL on Oracle
On Oracle, '' is NULL. On PostgreSQL it is a value, so a test for NULL, a CHECK or a join quietly changes meaning, with no error.
- On Paritas
- HandledOracle mode reads
''as NULL, in your tables, views, procedures and packages. Two corners differ:DBMS_OUTPUT.PUT_LINE(NULL)reads back as an empty string, and an empty q-quote,q'[]', is a string of length 0, so writeNULLor''instead. - pgrecon
- Flags the empty-string NULL trap in your PL/SQL.
- Restores
- A PostgreSQL archive read by Oracle's rules would turn
CHECK (s <> '')intos <> NULLwithout a word. So Paritas refuses an archive it did not make, before its first object.