CodeQL / Analyze (actions) (push) Canceled after 0s
CodeQL / Analyze (python) (push) Canceled after 0s
pre-commit / pre-commit (push) Canceled after 0s
Multi-Arch CI / setup (push) Canceled after 0s
Publish build_manylinux_x86_64 images / publish_build_manylinux_x86_64 (push) Canceled after 0s
Setup (Multi-Arch) / setup (push) Canceled after 0s
Multi-Arch CI / Linux::${{ fromJSON(needs.setup.outputs.linux_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubi10 image / publish_no_rocm_image_ubi10 (push) Canceled after 0s
Multi-Arch CI / Windows::${{ fromJSON(needs.setup.outputs.windows_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Multi-Arch CI / Manifest Diff (push) Canceled after 0s
TheRock Manifest Diff Report / Generate Manifest Diff Report (push) Canceled after 0s
Multi-Arch CI / CI Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_ocl_rt images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_rocgdb images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Unit Tests / Unit Tests :: ubuntu-24.04 (push) Canceled after 0s
Unit Tests / Unit Tests :: windows-2022 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_media (push) Canceled after 0s
Unit Tests / Unit Tests Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_openmpi (push) Canceled after 0s
67 lines
2.0 KiB
Plaintext
67 lines
2.0 KiB
Plaintext
# 2023-08-29
|
|
#
|
|
# The author disclaims copyright to this source code. In place of
|
|
# a legal notice, here is a blessing:
|
|
#
|
|
# May you do good and not evil.
|
|
# May you find forgiveness for yourself and forgive others.
|
|
# May you share freely, never taking more than you give.
|
|
#
|
|
#*************************************************************************
|
|
#
|
|
# Test cases for some newer SQL functions
|
|
#
|
|
set testdir [file dirname $argv0]
|
|
source $testdir/tester.tcl
|
|
|
|
do_execsql_test func9-100 {
|
|
SELECT concat('abc',123,null,'xyz');
|
|
} {abc123xyz}
|
|
do_execsql_test func9-110 {
|
|
SELECT typeof(concat(null));
|
|
} {text}
|
|
do_catchsql_test func9-120 {
|
|
SELECT concat();
|
|
} {1 {wrong number of arguments to function concat()}}
|
|
do_execsql_test func9-130 {
|
|
SELECT concat_ws(',',1,2,3,4,5,6,7,8,NULL,9,10,11,12);
|
|
} {1,2,3,4,5,6,7,8,9,10,11,12}
|
|
do_execsql_test func9-131 {
|
|
SELECT concat_ws(',',1,2,3,4,'',6,7,8,NULL,9,10,11,12);
|
|
} {1,2,3,4,,6,7,8,9,10,11,12}
|
|
do_execsql_test func9-132 {
|
|
SELECT concat_ws(',','',2,3,4,'',6,7,8,NULL,9,10,11,12);
|
|
} {,2,3,4,,6,7,8,9,10,11,12}
|
|
do_execsql_test func9-133 {
|
|
SELECT concat_ws(',',NULL,'',3,4,'',6,7,8,NULL,9,10,11,12);
|
|
} {,3,4,,6,7,8,9,10,11,12}
|
|
do_execsql_test func9-134 {
|
|
SELECT concat_ws(',',NULL,NULL,NULL,'',3,4,'',6,7,8,NULL,9,10,11,12);
|
|
} {,3,4,,6,7,8,9,10,11,12}
|
|
do_execsql_test func9-140 {
|
|
SELECT concat_ws(NULL,1,2,3,4,5,6,7,8,NULL,9,10,11,12);
|
|
} {{}}
|
|
do_catchsql_test func9-150 {
|
|
SELECT concat_ws();
|
|
} {1 {wrong number of arguments to function concat_ws()}}
|
|
do_catchsql_test func9-160 {
|
|
SELECT concat_ws(',');
|
|
} {1 {wrong number of arguments to function concat_ws()}}
|
|
|
|
# https://sqlite.org/forum/forumpost/4c344ca61f (2025-03-02)
|
|
do_execsql_test func9-200 {
|
|
SELECT unistr('G\u00e4ste');
|
|
} {Gäste}
|
|
do_execsql_test func9-210 {
|
|
SELECT unistr_quote(unistr('G\u00e4ste'));
|
|
} {'Gäste'}
|
|
do_execsql_test func9-220 {
|
|
SELECT format('%#Q',unistr('G\u00e4ste'));
|
|
} {'Gäste'}
|
|
|
|
do_execsql_test func9-300 {
|
|
SELECT hex( unistr('\UFFFFFFFF') )
|
|
} {F7BFBFBF}
|
|
|
|
finish_test
|