mirror of
https://github.com/aljazceru/turso.git
synced 2026-02-06 16:54:23 +01:00
add tests for octet_length scalar function
This commit is contained in:
@@ -359,8 +359,32 @@ do_execsql_test length-empty-text {
|
||||
SELECT length('');
|
||||
} {0}
|
||||
|
||||
do_execsql_test length-date-binary-expr {
|
||||
select length(date('now')) = 10;
|
||||
do_execsql_test octet-length-text {
|
||||
SELECT length('limbo');
|
||||
} {5}
|
||||
|
||||
do_execsql_test octet-lenght-text-utf8-chars {
|
||||
SELECT octet_length('ąłóżźć');
|
||||
} {12}
|
||||
|
||||
do_execsql_test octet-length-integer {
|
||||
SELECT octet_length(12345);
|
||||
} {5}
|
||||
|
||||
do_execsql_test octet-length-float {
|
||||
SELECT octet_length(123.456);
|
||||
} {7}
|
||||
|
||||
do_execsql_test octet-length-null {
|
||||
SELECT octet_length(NULL);
|
||||
} {}
|
||||
|
||||
do_execsql_test octet-length-empty-text {
|
||||
SELECT octet_length('');
|
||||
} {0}
|
||||
|
||||
do_execsql_test octet-length-date-binary-expr {
|
||||
select octet_length(date('now')) = 10;
|
||||
} {1}
|
||||
|
||||
do_execsql_test min-number {
|
||||
|
||||
Reference in New Issue
Block a user