Add testing

This commit is contained in:
rjhallsted 2024-09-16 16:18:26 -07:00
parent f39dc534a6
commit af09f0b7f4
3 changed files with 6 additions and 0 deletions

View file

@ -144,6 +144,7 @@ impl Func {
"coalesce" => Ok(Func::Scalar(ScalarFunc::Coalesce)),
"concat" => Ok(Func::Scalar(ScalarFunc::Concat)),
"concat_ws" => Ok(Func::Scalar(ScalarFunc::ConcatWs)),
"glob" => Ok(Func::Scalar(ScalarFunc::Glob)),
"ifnull" => Ok(Func::Scalar(ScalarFunc::IfNull)),
"like" => Ok(Func::Scalar(ScalarFunc::Like)),
"abs" => Ok(Func::Scalar(ScalarFunc::Abs)),

View file

@ -5,6 +5,7 @@ set testdir [file dirname $argv0]
source $testdir/cmdlineshell.test
source $testdir/agg-functions.test
source $testdir/coalesce.test
source $testdir/glob.test
source $testdir/join.test
source $testdir/insert.test
source $testdir/join.test

View file

@ -22,6 +22,10 @@ do_execsql_test where-glob {
} {4|sweater|25.0
5|sweatshirt|74.0}
do_execsql_test where-glob-question-mark {
select * from products where name glob 'sweat?r';
} {4|sweater|25.0}
do_execsql_test where-glob-fn {
select * from products where glob('sweat*', name)=1
} {4|sweater|25.0