7cf8c55add
the database. (CVS 1670) FossilOrigin-Name: d333ac8002feff9423e286369e5ae5a6bfe3be50
42 lines
998 B
Plaintext
42 lines
998 B
Plaintext
# 2002 May 24
|
|
#
|
|
# 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.
|
|
#
|
|
#***********************************************************************
|
|
# This file implements regression tests for SQLite library.
|
|
#
|
|
# The focus of this file is testing of the proper handling of conversions
|
|
# to the native text representation.
|
|
#
|
|
# $Id: enc3.test,v 1.1 2004/06/22 17:59:57 drh Exp $
|
|
|
|
set testdir [file dirname $argv0]
|
|
source $testdir/tester.tcl
|
|
|
|
do_test enc3-1.1 {
|
|
execsql {
|
|
PRAGMA encoding=utf16le;
|
|
PRAGMA encoding;
|
|
}
|
|
} {UTF-16le}
|
|
do_test enc3-1.2 {
|
|
execsql {
|
|
CREATE TABLE t1(x,y);
|
|
INSERT INTO t1 VALUES('abc''123',5);
|
|
SELECT * FROM t1
|
|
}
|
|
} {abc'123 5}
|
|
do_test enc3-1.3 {
|
|
execsql {
|
|
SELECT quote(x) || ' ' || quote(y) FROM t1
|
|
}
|
|
} {{'abc''123' 5}}
|
|
|
|
|
|
finish_test
|