OLD | NEW |
1 # 2007 Aug 29 | 1 # 2007 Aug 29 |
2 # | 2 # |
3 # The author disclaims copyright to this source code. In place of | 3 # The author disclaims copyright to this source code. In place of |
4 # a legal notice, here is a blessing: | 4 # a legal notice, here is a blessing: |
5 # | 5 # |
6 # May you do good and not evil. | 6 # May you do good and not evil. |
7 # May you find forgiveness for yourself and forgive others. | 7 # May you find forgiveness for yourself and forgive others. |
8 # May you share freely, never taking more than you give. | 8 # May you share freely, never taking more than you give. |
9 # | 9 # |
10 #*********************************************************************** | 10 #*********************************************************************** |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 } -sqlbody { | 46 } -sqlbody { |
47 SELECT * FROM t1 | 47 SELECT * FROM t1 |
48 WHERE x BETWEEN 'a' AND 'z' | 48 WHERE x BETWEEN 'a' AND 'z' |
49 AND x BETWEEN 'c' AND 'w' | 49 AND x BETWEEN 'c' AND 'w' |
50 AND x BETWEEN 'e' AND 'u' | 50 AND x BETWEEN 'e' AND 'u' |
51 AND x BETWEEN 'g' AND 'r' | 51 AND x BETWEEN 'g' AND 'r' |
52 AND x BETWEEN 'i' AND 'q' | 52 AND x BETWEEN 'i' AND 'q' |
53 AND x BETWEEN 'i' AND 'm' | 53 AND x BETWEEN 'i' AND 'm' |
54 } | 54 } |
55 | 55 |
| 56 ifcapable !utf16 { |
| 57 finish_test |
| 58 return |
| 59 } |
| 60 |
56 proc utf16 {utf8} { | 61 proc utf16 {utf8} { |
57 set utf16 [encoding convertto unicode $utf8] | 62 set utf16 [encoding convertto unicode $utf8] |
58 append utf16 "\x00\x00" | 63 append utf16 "\x00\x00" |
59 return $utf16 | 64 return $utf16 |
60 } | 65 } |
61 | 66 |
62 do_malloc_test mallocG-4 -tclbody { | 67 do_malloc_test mallocG-4 -tclbody { |
63 set rc [sqlite3_complete16 [utf16 "SELECT * FROM t1;"]] | 68 set rc [sqlite3_complete16 [utf16 "SELECT * FROM t1;"]] |
64 if {$rc==1} {set rc 0} {error "out of memory"} | 69 if {$rc==1} {set rc 0} {error "out of memory"} |
65 set rc | 70 set rc |
66 } | 71 } |
67 | 72 |
68 finish_test | 73 finish_test |
OLD | NEW |