1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-02 17:26:44 +03:00

When converting literal BLOBs to text using the encoding of the main

database.  Ticket #2349. (CVS 3975)

FossilOrigin-Name: a57afaff424448ffed8f2344e5eb461f503bfb6e
This commit is contained in:
drh
2007-05-10 21:14:03 +00:00
parent 639f45ff06
commit e718efe113
4 changed files with 25 additions and 16 deletions

View File

@ -13,7 +13,7 @@
# The focus of this file is testing of the proper handling of conversions
# to the native text representation.
#
# $Id: enc3.test,v 1.5 2006/01/12 19:42:41 drh Exp $
# $Id: enc3.test,v 1.6 2007/05/10 21:14:03 drh Exp $
set testdir [file dirname $argv0]
source $testdir/tester.tcl
@ -65,6 +65,16 @@ ifcapable {bloblit && utf16} {
SELECT CAST(a AS text) FROM t2 WHERE a LIKE 'abc%';
}
} {abcde}
do_test enc3-2.3 {
execsql {
SELECT CAST(x'61006200630064006500' AS text);
}
} {abcde}
do_test enc3-2.4 {
execsql {
SELECT rowid FROM t2 WHERE a LIKE x'610062002500';
}
} {1}
}