Handle blobs that are the return values of functions being cast to text in utf16 databases in the same way as blobs read directly from the database. Fix for [771fe617].

FossilOrigin-Name: e782096aa06fcf410c3a0a6ee26a9e4f44333da39b28b2efe675814a8652911a
This commit is contained in:
dan
2020-01-02 16:24:22 +00:00
parent 4cbd847a91
commit 9f3e6fadde
5 changed files with 58 additions and 12 deletions
+12
View File
@@ -461,6 +461,18 @@ do_execsql_test cast-7.43 {
SELECT CAST('-1.0' AS numeric);
} -1
ifcapable utf16 {
reset_db
execsql { PRAGMA encoding='utf16' }
do_execsql_test cast-8.1 {
SELECT quote(X'310032003300')==quote(substr(X'310032003300', 1))
} 1
do_execsql_test cast-8.2 {
SELECT CAST(X'310032003300' AS TEXT)
==CAST(substr(X'310032003300', 1) AS TEXT)
} 1
}
finish_test