Skip to main content

condition_against_an_empty_store_admits_the_append

Function condition_against_an_empty_store_admits_the_append 

pub async fn condition_against_an_empty_store_admits_the_append<F: Fixture>(
    open: impl AsyncFn() -> F,
) -> RuleOutcome
Expand description

A condition evaluated against an empty store admits the append.

ES-28 and CF-10. Every other condition rule seeds the store first, so the degenerate case had never run — and it is degenerate in SQL rather than in the abstract: MAX(position) over no rows is NULL, NULL > ? is unknown rather than false, and whether WHERE discards an unknown or a wrapping NOT turns it into a rejection depends on how the predicate is nested. NullAggregateProbeStore is the version that rejects.

This is also every adapter’s very first conditional append, which is what makes the case worth a rule of its own rather than a note.