mirror of
https://github.com/aljazceru/turso.git
synced 2025-12-18 09:04:19 +01:00
Add unhex(X) scalar function
This commit adds `unhex(X)` scalar function. Function with `unhex(X,Y)` two arguments is not implemented yet. Relates to issue #144
This commit is contained in:
@@ -119,6 +119,30 @@ do_execsql_test hex-null {
|
||||
select hex(null)
|
||||
} {}
|
||||
|
||||
do_execsql_test unhex-str-ab {
|
||||
SELECT unhex('6162');
|
||||
} {ab}
|
||||
|
||||
do_execsql_test unhex-int-ab {
|
||||
SELECT unhex(6162);
|
||||
} {ab}
|
||||
|
||||
do_execsql_test unhex-dot-uppercase {
|
||||
SELECT unhex('2E');
|
||||
} {.}
|
||||
|
||||
do_execsql_test unhex-dot-lowercase {
|
||||
SELECT unhex('2e');
|
||||
} {.}
|
||||
|
||||
do_execsql_test unhex-no-hex {
|
||||
SELECT unhex('x');
|
||||
} {}
|
||||
|
||||
do_execsql_test unhex-null {
|
||||
SELECT unhex(NULL);
|
||||
} {}
|
||||
|
||||
do_execsql_test trim {
|
||||
SELECT trim(' Limbo ');
|
||||
} {Limbo}
|
||||
|
||||
Reference in New Issue
Block a user