sql::parsers::create_parser

Function ensure_one_expr

source
fn ensure_one_expr(expr: &Expr, columns: &[&Column]) -> Result<()>
Expand description

Check if the expr is a binary expr, an ident or a literal value. If is ident, then check it is in the column list. This recursive function is intended to be used by ensure_exprs_are_binary.