Skip to main content

validate_default_change

Function validate_default_change 

Source
pub fn validate_default_change(
    table: &str,
    column: &ColumnDef,
    setting: bool,
) -> Result<(), SQLError>
Expand description

ATExecColumnDefault’s checks of the column whose default SET DEFAULT (setting) or DROP DEFAULT changes: an identity column takes its values from its sequence and a generated column from its expression.