Skip to content

Commit

Permalink
sqlsmith should generate strpos (or position-with-in)
Browse files Browse the repository at this point in the history
  • Loading branch information
xiangjinwu committed Apr 4, 2023
1 parent 031c2e1 commit 07e4410
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tests/sqlsmith/src/sql_gen/expr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -550,7 +550,7 @@ fn make_general_expr(func: ExprType, exprs: Vec<Expr>) -> Option<Expr> {
E::IsNotTrue => Some(Expr::IsNotTrue(Box::new(exprs[0].clone()))),
E::IsFalse => Some(Expr::IsFalse(Box::new(exprs[0].clone()))),
E::IsNotFalse => Some(Expr::IsNotFalse(Box::new(exprs[0].clone()))),
E::Position => Some(Expr::Function(make_simple_func("position", &exprs))),
E::Position => Some(Expr::Function(make_simple_func("strpos", &exprs))),
E::RoundDigit => Some(Expr::Function(make_simple_func("round", &exprs))),
E::Pow => Some(Expr::Function(make_simple_func("pow", &exprs))),
E::Repeat => Some(Expr::Function(make_simple_func("repeat", &exprs))),
Expand Down

0 comments on commit 07e4410

Please sign in to comment.