Not Null Constraint is ignored on a CLOB column
Last updated on DECEMBER 06, 2016
Applies to:Oracle Server - Enterprise Edition - Version 126.96.36.199 to 188.8.131.52 [Release 11.1 to 11.2]
Information in this document applies to any platform.
ORA-1400 is not being raised when a NULL is inserted into a LOB column in a table and the column has a NOT NULL constraint enabled.
When inserting NULL data into a NOT NULL CLOB column, the statement expectedly fails with
ORA-01400: cannot insert NULL into ("SYSADM"."ZZZ_CLOB"."SAA_DESCRLONG")
However, when the table has an index with sorting DESC, it inserts NULL in the CLOB column
When DESC is omitted, again the ORA-1400 error is reported as expected
Sign In with your My Oracle Support account
Don't have a My Oracle Support account? Click to get started
Million Knowledge Articles and hundreds of Community platforms