You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@empire-db.apache.org by "Rainer Döbele (Jira)" <ji...@apache.org> on 2026/04/12 15:00:00 UTC

[jira] [Created] (EMPIREDB-485) Oracle: Allow primary key with nullable column

Rainer Döbele created EMPIREDB-485:
--------------------------------------

             Summary: Oracle: Allow primary key with nullable column
                 Key: EMPIREDB-485
                 URL: https://issues.apache.org/jira/browse/EMPIREDB-485
             Project: Empire-DB
          Issue Type: Improvement
            Reporter: Rainer Döbele
            Assignee: Rainer Döbele


Although Oracle allows a primary key column to be declared as nullable oracle silently treats it as non-null resulting in an error when trying to insert a record with a null value for the column.

Instead the constraint should not be declared as "PRIMARY KEY" but as "UNIQUE" since for UNIQUE constraints null is handled correctly.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)