Skip to main content

validate_fk_value

Function validate_fk_value 

Source
pub fn validate_fk_value(
    engine: &MVCCEngine,
    txn_id: i64,
    fk: &ForeignKeyConstraint,
    value: &Value,
    child_table: &str,
) -> Result<()>
Expand description

Pre-validate a single FK value against its parent table. Used for early validation of constant SET values in UPDATE statements to prevent dirty state in explicit transactions.

NULL values are allowed (no reference) and should be skipped by the caller.