Home
last modified time | relevance | path

Searched refs:STMT (Results 1 – 25 of 64) sorted by relevance

123

/external/chromium_org/third_party/sqlite/src/test/
Dcapi3c.test67 set STMT [sqlite3_prepare_v2 $DB {SELECT name FROM sqlite_master} -1 TAIL]
68 sqlite3_finalize $STMT
82 set STMT [sqlite3_prepare_v2 $DB $sql -1 TAIL]
83 sqlite3_finalize $STMT
89 set STMT [sqlite3_prepare_v2 $DB $sql -1 TAIL]
106 set STMT [sqlite3_prepare16_v2 $DB $sql16 -1 ::TAIL]
107 sqlite3_finalize $STMT
112 set STMT [sqlite3_prepare16_v2 $DB $sql -1 TAIL]
113 sqlite3_finalize $STMT
119 set STMT [sqlite3_prepare16_v2 $DB $sql -1 TAIL]
[all …]
Dcapi3.test65 set STMT [sqlite3_prepare $DB {SELECT name FROM sqlite_master} -1 TAIL]
66 sqlite3_finalize $STMT
80 set STMT [sqlite3_prepare $DB $sql -1 TAIL]
81 sqlite3_finalize $STMT
86 set STMT [sqlite3_prepare $DB $sql [string length $sql] TAIL]
87 sqlite3_finalize $STMT
92 set STMT [sqlite3_prepare $DB $sql [expr [string length $sql]+1] TAIL]
93 sqlite3_finalize $STMT
100 set STMT [sqlite3_prepare $DB $sql -1 TAIL]
116 set STMT [sqlite3_prepare16 $DB $sql16 -1 ::TAIL]
[all …]
Dschema2.test45 set ::STMT [sqlite3_prepare_v2 $::DB {SELECT * FROM sqlite_master} -1 TAIL]
49 sqlite3_step $::STMT
52 sqlite3_finalize $::STMT
55 set ::STMT [sqlite3_prepare_v2 $::DB {SELECT * FROM sqlite_master} -1 TAIL]
59 sqlite3_step $::STMT
62 sqlite3_finalize $::STMT
68 set ::STMT [sqlite3_prepare_v2 $::DB {SELECT * FROM sqlite_master} -1 TAIL]
72 sqlite3_step $::STMT
75 sqlite3_finalize $::STMT
78 set ::STMT [sqlite3_prepare_v2 $::DB {SELECT * FROM sqlite_master} -1 TAIL]
[all …]
Dschema.test45 set ::STMT [sqlite3_prepare $::DB {SELECT * FROM sqlite_master} -1 TAIL]
49 sqlite3_step $::STMT
52 sqlite3_finalize $::STMT
55 set ::STMT [sqlite3_prepare $::DB {SELECT * FROM sqlite_master} -1 TAIL]
59 sqlite3_step $::STMT
62 sqlite3_finalize $::STMT
67 set ::STMT [sqlite3_prepare $::DB {SELECT * FROM sqlite_master} -1 TAIL]
71 sqlite3_step $::STMT
74 sqlite3_finalize $::STMT
77 set ::STMT [sqlite3_prepare $::DB {SELECT * FROM sqlite_master} -1 TAIL]
[all …]
Dfts1i.test50 set STMT [sqlite3_prepare $DB $sql -1 TAIL]
51 sqlite3_step $STMT
52 sqlite3_finalize $STMT
58 set STMT [sqlite3_prepare $DB $sql -1 TAIL]
59 sqlite3_step $STMT
60 sqlite3_finalize $STMT
62 set STMT [sqlite3_prepare $DB $sql -1 TAIL]
63 sqlite3_step $STMT
64 sqlite3_finalize $STMT
70 set STMT [sqlite3_prepare16 $DB $sql16 -1 TAIL]
[all …]
Dfts3ai.test49 set STMT [sqlite3_prepare $DB $sql -1 TAIL]
50 sqlite3_step $STMT
51 sqlite3_finalize $STMT
57 set STMT [sqlite3_prepare $DB $sql -1 TAIL]
58 sqlite3_step $STMT
59 sqlite3_finalize $STMT
61 set STMT [sqlite3_prepare $DB $sql -1 TAIL]
62 sqlite3_step $STMT
63 sqlite3_finalize $STMT
69 set STMT [sqlite3_prepare16 $DB $sql16 -1 TAIL]
[all …]
Dfts2i.test49 set STMT [sqlite3_prepare $DB $sql -1 TAIL]
50 sqlite3_step $STMT
51 sqlite3_finalize $STMT
57 set STMT [sqlite3_prepare $DB $sql -1 TAIL]
58 sqlite3_step $STMT
59 sqlite3_finalize $STMT
61 set STMT [sqlite3_prepare $DB $sql -1 TAIL]
62 sqlite3_step $STMT
63 sqlite3_finalize $STMT
69 set STMT [sqlite3_prepare16 $DB $sql16 -1 TAIL]
[all …]
Dmisc6.test24 set STMT [sqlite3_prepare $DB {SELECT hex8(?)} -1 DUMMY]
27 sqlite_bind $STMT 1 {} static-nbytes
28 sqlite3_step $STMT
31 sqlite3_column_text $STMT 0
35 sqlite3_finalize $STMT
36 set STMT [sqlite3_prepare $DB {SELECT hex16(?)} -1 DUMMY]
39 sqlite_bind $STMT 1 {} static-nbytes
40 sqlite3_step $STMT
43 sqlite3_column_text $STMT 0
46 sqlite3_finalize $STMT
Dnan.test38 set ::STMT [sqlite3_prepare db "INSERT INTO t1 VALUES(?)" -1 TAIL]
39 sqlite3_bind_double $::STMT 1 NaN
40 sqlite3_step $::STMT
41 sqlite3_reset $::STMT
46 sqlite3_bind_double $::STMT 1 +Inf
47 sqlite3_step $::STMT
48 sqlite3_reset $::STMT
52 sqlite3_bind_double $::STMT 1 -Inf
53 sqlite3_step $::STMT
54 sqlite3_reset $::STMT
[all …]
Dcreatetab.test61 set STMT [sqlite3_prepare db {SELECT x FROM t1} -1 TAIL]
62 sqlite3_step $STMT
65 sqlite3_column_int $STMT 0
81 sqlite3_column_int $STMT 0
84 sqlite3_step $STMT
87 sqlite3_column_int $STMT 0
101 sqlite3_column_int $STMT 0
104 sqlite3_step $STMT
107 sqlite3_column_int $STMT 0
120 sqlite3_column_int $STMT 0
[all …]
Dtkt-26ff0c2d1e.test21 set STMT [sqlite3_prepare_v2 $DB $SQL -1 TAIL]
25 sqlite3_bind_parameter_count $STMT
28 sqlite3_bind_int $STMT 1 123
29 sqlite3_bind_int $STMT 2 456
30 sqlite3_step $STMT
31 sqlite3_column_int $STMT 0
33 sqlite3_finalize $STMT
Dmalloc4.test50 set ::STMT [sqlite3_prepare $::DB $sql -1 TAIL]
51 expr [string length $::STMT] > 0
74 set ::name8 [sqlite3_column_name $::STMT 0]
80 set ::name16 [sqlite3_column_name16 $::STMT 0]
88 set ::name8_2 [sqlite3_column_name $::STMT 0]
109 sqlite3_step $::STMT
116 set ::text8 [sqlite3_column_text $::STMT 0]
121 set ::text16 [sqlite3_column_text16 $::STMT 0]
128 set ::text8_2 [sqlite3_column_text $::STMT 0]
139 sqlite3_column_text16 $::STMT 0
[all …]
Dtkt1644.test77 set ::STMT [sqlite3_prepare $::DB "SELECT * FROM temp_t1" -1 DUMMY]
81 list [sqlite3_step $::STMT] [sqlite3_finalize $::STMT]
90 set ::STMT [sqlite3_prepare $::DB "SELECT * FROM temp_v1" -1 DUMMY]
94 list [sqlite3_step $::STMT] [sqlite3_finalize $::STMT]
102 set ::STMT [sqlite3_prepare $::DB "SELECT * FROM temp_v1" -1 DUMMY]
106 list [sqlite3_step $::STMT] [sqlite3_finalize $::STMT]
Dmalloc9.test34 if {[catch {sqlite3_prepare db $sql $sqlbytes TAIL} STMT]} {
35 set msg $STMT
36 set STMT {}
40 if {$STMT!=""} {
41 sqlite3_finalize $STMT
Dshared_err.test164 set ::STMT [sqlite3_prepare $::DB2 "SELECT a FROM t1 ORDER BY a" -1 DUMMY]
165 sqlite3_step $::STMT ;# Cursor points at 000.000.000.000
166 sqlite3_step $::STMT ;# Cursor points at 001.001.001.001
176 set ::steprc [sqlite3_step $::STMT]
177 set ::column [sqlite3_column_text $::STMT 0]
178 set ::finalrc [sqlite3_finalize $::STMT]
191 # statement $::STMT will have been aborted. This means [sqlite3_stmt]
243 set ::STMT [sqlite3_prepare $::DB2 \
245 sqlite3_step $::STMT ;# Cursor points at 199.199.199.199.199
246 sqlite3_step $::STMT ;# Cursor points at 198.198.198.198.198
[all …]
Dtkt-b72787b1.test38 unset -nocomplain ::STMT
41 sqlite3_step $::STMT
42 set rc [sqlite3_column_int $::STMT 0]
43 sqlite3_reset $::STMT
59 set ::STMT [sqlite3_prepare_v2 $DB $sql -1 TAIL]
62 # cause all $::STMT to hit an expired cookie. Prior to the fix
75 sqlite3_finalize $::STMT
Drollback.test45 set STMT [sqlite3_prepare $DB "SELECT a FROM t1" -1 TAIL]
46 sqlite3_step $STMT
62 sqlite3_step $STMT
67 do_test rollback-1.6 { sqlite3_reset $STMT } {SQLITE_ABORT}
69 do_test rollback-1.6 { sqlite3_reset $STMT } {SQLITE_OK}
73 sqlite3_step $STMT
76 sqlite3_step $STMT
79 sqlite3_finalize $STMT
Dtrace.test58 set STMT [sqlite3_prepare $DB {INSERT INTO t1 VALUES(2,3)} -1 TAIL]
65 sqlite3_step $STMT
70 sqlite3_reset $STMT
74 sqlite3_step $STMT
84 catch {sqlite3_finalize $STMT}
128 set STMT [sqlite3_prepare $DB {INSERT INTO t2 VALUES(2,3)} -1 TAIL]
135 sqlite3_step $STMT
140 sqlite3_reset $STMT
144 sqlite3_step $STMT
154 catch {sqlite3_finalize $STMT}
Dmalloc.test223 set ::STMT {}
226 set ::STMT [sqlite3_prepare db $sql -1 X]
227 sqlite3_step $::STMT
235 sqlite3_column_text16 $::STMT 0
236 sqlite3_column_int $::STMT 0
237 sqlite3_column_text16 $::STMT 1
238 sqlite3_column_double $::STMT 1
239 set rc [sqlite3_reset $::STMT]
241 sqlite3_bind_text16 $::STMT 1 $::bomstr 60
242 #catch {sqlite3_finalize $::STMT}
[all …]
Dtkt2409.test63 if {$::STMT eq ""} {
64 set ::STMT [sqlite3_prepare db2 {SELECT rowid FROM sqlite_master} -1 TAIL]
65 set rc [sqlite3_step $::STMT]
76 if {$::STMT ne ""} {
77 sqlite3_finalize $::STMT
78 set ::STMT ""
85 set ::STMT ""
Dthread005.test38 set STMT [sqlite3_prepare_v2 $db $zSql -1 zSql]
39 while {[set rc [sqlite3_step $STMT]] eq "SQLITE_ROW"} { }
40 set rc [sqlite3_finalize $STMT]
147 set STMT [sqlite3_prepare_v2 $db $zSql -1 zSql]
148 while {[set rc [sqlite3_step $STMT]] eq "SQLITE_ROW"} {
149 for {set i 0} {$i < [sqlite3_column_count $STMT]} {incr i} {
150 lappend lRes [sqlite3_column_text $STMT 0]
153 set rc [sqlite3_finalize $STMT]
Dcapi2.test20 # Return the text values from the current row pointed at by STMT as a list.
21 proc get_row_values {STMT} {
23 for {set i 0} {$i < [sqlite3_data_count $STMT]} {incr i} {
24 lappend VALUES [sqlite3_column_text $STMT $i]
30 # of the SQL statement STMT.
37 proc get_column_names {STMT} {
39 for {set i 0} {$i < [sqlite3_column_count $STMT]} {incr i} {
40 lappend VALUES [sqlite3_column_name $STMT $i]
42 for {set i 0} {$i < [sqlite3_column_count $STMT]} {incr i} {
43 lappend VALUES [sqlite3_column_decltype $STMT $i]
[all …]
Dzeroblob.test202 set ::STMT [sqlite3_prepare $::DB "SELECT length(?)" -1 DUMMY]
204 sqlite3_bind_zeroblob $::STMT 1 450000
205 sqlite3_step $::STMT
208 sqlite3_column_int $::STMT 0
211 sqlite3_finalize $::STMT
Dblob.test132 set STMT [sqlite3_prepare $DB "DELETE FROM t1 WHERE a = ?" -1 DUMMY]
133 sqlite3_bind_blob $STMT 1 "\x12\x34\x56" 3
134 sqlite3_step $STMT
137 sqlite3_finalize $STMT
Dcapi3d.test98 set STMT [sqlite3_prepare $DB {%s} -1 TAIL]
99 set rc [sqlite3_stmt_readonly $STMT]
100 sqlite3_finalize $STMT

123