mirror of
https://github.com/tursodatabase/limbo.git
synced 2025-08-03 17:48:17 +00:00
Add substring scala function with 2 arg
This commit is contained in:
parent
3fa3c5c002
commit
dc48c2e71d
4 changed files with 53 additions and 20 deletions
|
@ -239,18 +239,26 @@ do_execsql_test max-null {
|
|||
select max(null,null)
|
||||
} {}
|
||||
|
||||
do_execsql_test substr {
|
||||
do_execsql_test substr-3-args {
|
||||
SELECT substr('limbo', 1, 3);
|
||||
} {lim}
|
||||
|
||||
do_execsql_test substr-exceed-length {
|
||||
do_execsql_test substr-3-args-exceed-length {
|
||||
SELECT substr('limbo', 1, 10);
|
||||
} {limbo}
|
||||
|
||||
do_execsql_test substr-start-exceed-length {
|
||||
do_execsql_test substr-3-args-start-exceed-length {
|
||||
SELECT substr('limbo', 10, 3);
|
||||
} {}
|
||||
|
||||
do_execsql_test substr-2-args {
|
||||
SELECT substr('limbo', 3);
|
||||
} {mbo}
|
||||
|
||||
do_execsql_test substr-2-args-exceed-length {
|
||||
SELECT substr('limbo', 10);
|
||||
} {}
|
||||
|
||||
do_execsql_test date-current-date {
|
||||
SELECT length(date('now')) = 10;
|
||||
} {1}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue