aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/libraries/sqlite/unix/sqlite-3.5.1/test/shared3.test
diff options
context:
space:
mode:
authordan miller2007-10-20 02:49:29 +0000
committerdan miller2007-10-20 02:49:29 +0000
commite36d23a85ebff914d74bb541558c2b6082b78edb (patch)
tree54b58fdf162e78af64055282a6035c8d2443389d /libraries/sqlite/unix/sqlite-3.5.1/test/shared3.test
parent* Fixed an issue whereby avatar chat distances were being calculated against ... (diff)
downloadopensim-SC-e36d23a85ebff914d74bb541558c2b6082b78edb.zip
opensim-SC-e36d23a85ebff914d74bb541558c2b6082b78edb.tar.gz
opensim-SC-e36d23a85ebff914d74bb541558c2b6082b78edb.tar.bz2
opensim-SC-e36d23a85ebff914d74bb541558c2b6082b78edb.tar.xz
sqlite source (unix build) added to libraries
Diffstat (limited to 'libraries/sqlite/unix/sqlite-3.5.1/test/shared3.test')
-rw-r--r--libraries/sqlite/unix/sqlite-3.5.1/test/shared3.test47
1 files changed, 47 insertions, 0 deletions
diff --git a/libraries/sqlite/unix/sqlite-3.5.1/test/shared3.test b/libraries/sqlite/unix/sqlite-3.5.1/test/shared3.test
new file mode 100644
index 0000000..4cef49c
--- /dev/null
+++ b/libraries/sqlite/unix/sqlite-3.5.1/test/shared3.test
@@ -0,0 +1,47 @@
1# 2005 January 19
2#
3# The author disclaims copyright to this source code. In place of
4# a legal notice, here is a blessing:
5#
6# May you do good and not evil.
7# May you find forgiveness for yourself and forgive others.
8# May you share freely, never taking more than you give.
9#
10#***********************************************************************
11#
12# $Id: shared3.test,v 1.1 2006/05/24 12:43:28 drh Exp $
13
14set testdir [file dirname $argv0]
15source $testdir/tester.tcl
16db close
17
18ifcapable !shared_cache {
19 finish_test
20 return
21}
22set ::enable_shared_cache [sqlite3_enable_shared_cache 1]
23
24# Ticket #1824
25#
26do_test shared3-1.1 {
27 file delete -force test.db test.db-journal
28 sqlite3 db1 test.db
29 db1 eval {
30 PRAGMA encoding=UTF16;
31 CREATE TABLE t1(x,y);
32 INSERT INTO t1 VALUES('abc','This is a test string');
33 }
34 db1 close
35 sqlite3 db1 test.db
36 db1 eval {SELECT * FROM t1}
37} {abc {This is a test string}}
38do_test shared3-1.2 {
39 sqlite3 db2 test.db
40 db2 eval {SELECT y FROM t1 WHERE x='abc'}
41} {{This is a test string}}
42
43db1 close
44db2 close
45
46sqlite3_enable_shared_cache $::enable_shared_cache
47finish_test