Skip to main content

is_true

Function is_true 

Source
pub fn is_true<'a, V, E>(
    expr: E,
) -> SQLExpr<'a, V, <V::DialectMarker as DialectTypes>::Bool, NonNull, E::Aggregate>
where V: SQLParam + 'a, E: Expr<'a, V>,
Expand description

IS TRUE - tests if a boolean expression is true.

Unlike = TRUE, this handles NULL correctly:

  • TRUE IS TRUE → true
  • FALSE IS TRUE → false
  • NULL IS TRUE → false (not NULL!)