Skip to main content

checked_row_bound

Function checked_row_bound 

Source
pub fn checked_row_bound(clause: &'static str, expr: &Expr) -> Result<RowBound>
Expand description

Resolve a LIMIT/OFFSET/FETCH bound. Names clause and the value as written on failure. Every row-bound site routes through here.

Expr::Value(Value::Null) resolves to RowBound::Unbounded — PostgreSQL treats a NULL LIMIT/OFFSET/FETCH argument as no bound at all. A prepared LIMIT $1 reaches this shape at Parse-time schema inference, before the real bound is bound at Execute time.