Skip to main content

prepare_added_not_null

Function prepare_added_not_null 

Source
pub fn prepare_added_not_null(
    definition: &CreateDomain,
    constraint: DomainNotNull,
    schema_names: &BTreeSet<String>,
) -> Result<DomainNotNull, SQLError>
Expand description

Name a new NOT NULL constraint after the executor has resolved and locked its domain. An existing NOT NULL constraint is retained unchanged, as ALTER DOMAIN does even when the requested name differs.