Home
last modified time | relevance | path

Searched refs:blob (Results 1 – 25 of 123) sorted by relevance

12345

/sqlite-3.40.0/test/
H A Dincrblobfault.test28 INSERT INTO blob SELECT NULL, v FROM blob;
29 INSERT INTO blob SELECT NULL, v FROM blob;
30 INSERT INTO blob SELECT NULL, v FROM blob;
31 INSERT INTO blob SELECT NULL, v FROM blob;
32 INSERT INTO blob SELECT NULL, v FROM blob;
33 INSERT INTO blob SELECT NULL, v FROM blob;
34 INSERT INTO blob SELECT NULL, v FROM blob;
35 INSERT INTO blob SELECT NULL, v FROM blob;
42 set ::blob [db incrblob blob v 1]
54 set ::blob [db incrblob blob v 1]
[all …]
H A Dblob.test32 do_test blob-1.0 {
36 do_test blob-1.1 {
40 do_test blob-1.2 {
44 do_test blob-1.3 {
54 do_test blob-1.4 {
57 do_test blob-1.5 {
60 do_test blob-1.6 {
63 do_test blob-1.7 {
66 do_test blob-1.8 {
69 do_test blob-1.9 {
[all …]
H A Dincrblob3.test46 gets $::blob
51 gets $::blob
208 close $::blob
212 close $::blob
228 close $::blob
292 read $::blob
294 close $::blob
298 read $::blob
300 close $::blob
304 read $::blob
[all …]
H A Dfunc2.test25 proc bin_to_hex {blob} {
27 binary scan $blob \c* bytes
373 bin_to_hex [lindex $blob 0]
389 bin_to_hex [lindex $blob 0]
393 bin_to_hex [lindex $blob 0]
397 bin_to_hex [lindex $blob 0]
401 bin_to_hex [lindex $blob 0]
406 bin_to_hex [lindex $blob 0]
410 bin_to_hex [lindex $blob 0]
414 bin_to_hex [lindex $blob 0]
[all …]
H A Dincrblob.test41 seek $::blob 0
43 flush $::blob
46 seek $::blob 0
51 close $::blob
73 read $::blob 10
81 read $::blob 10
84 close $::blob
160 # Read the last 20 bytes of the blob via a blob handle.
237 close $::blob
354 close $::blob
[all …]
H A Dincrblob_err.test38 set ::blob [db incrblob blobs v 1]
50 set ::blob [db incrblob blobs v 1]
65 set ::blob [db incrblob blobs v 1]
72 set rc [catch {close $::blob}]
83 read $::blob
92 puts -nonewline $::blob $::data
93 close $::blob
102 seek $::blob -20 end
104 close $::blob
119 close $::blob
[all …]
H A Dzipfile2.test32 proc blob {str} {
90 set blob [blob $archive]
105 set blob [blob $a]
116 set blob [blob $a]
128 set blob [blob $a]
142 # set blob [string range $blob 2 end]
143 # set blob [string range $blob 0 end-1]
146 # set blob [string range $blob 64 end]
157 set blob [blob $archive2]
167 set blob [blob $a]
[all …]
H A Dptrchng.test59 SELECT pointer_change(y, 'text', 'noop', 'blob') FROM t1 WHERE x=1
64 SELECT pointer_change(y, 'blob', 'noop', 'text') FROM t1 WHERE x=1
91 SELECT pointer_change(y, 'text', 'noop', 'blob') FROM t1 WHERE x=3
96 SELECT pointer_change(y, 'blob', 'noop', 'text') FROM t1 WHERE x=3
127 SELECT pointer_change(y, 'text', 'noop', 'blob') FROM t1 WHERE x=2
132 SELECT pointer_change(y, 'blob', 'noop', 'text') FROM t1 WHERE x=2
159 SELECT pointer_change(y, 'text', 'noop', 'blob') FROM t1 WHERE x=4
199 SELECT pointer_change(y, 'blob', 'bytes', 'blob') FROM t1
207 SELECT pointer_change(y, 'text', 'bytes', 'blob') FROM t1
213 SELECT pointer_change(y, 'text16', 'noop', 'blob') FROM t1
[all …]
H A De_blobwrite.test39 proc blob_write_test {tn id iOffset blob nData final} {
51 set res [sqlite3_blob_write $B $iOffset $blob $nData]
58 set blob "0123456789012345678901234567890123456789"
109 blob_write_error_test 2.1 $B 0 $blob 10 \
117 blob_write_error_test 2.2.1 $B 31 $blob 10 \
129 blob_write_error_test 2.2.2 $B 31 $blob -1 \
132 blob_write_error_test 2.2.4 $B -1 $blob 10 \
143 blob_write_error_test 2.3.1 $B 5 $blob 5 \
149 blob_write_error_test 2.3.3 $B 5 $blob 5 \
180 blob_write_error_test 3.1.3 $B 15 $blob 10 \
[all …]
H A Dincrblob4.test28 set blob [string repeat $d 900]
29 execsql { INSERT INTO t1(v) VALUES($blob) }
40 set blob [db incrblob t1 v 5]
41 read $blob 10
58 set blob [db incrblob t1 v 10]
59 read $blob 10
78 set blob [db incrblob t1 v 20]
79 read $blob 10
98 set blob [db incrblob -readonly t2 b 456]
99 read $blob 5
[all …]
H A Dwal.test34 proc blob {nByte} {
45 [lindex $args 0] function blob blob
179 db func blob blob
186 INSERT INTO t2 VALUES(blob(400), blob(400));
188 INSERT INTO t2 SELECT blob(400), blob(400) FROM t2; /* 2 */
189 INSERT INTO t2 SELECT blob(400), blob(400) FROM t2; /* 4 */
228 db func blob blob
235 db func blob blob
243 INSERT INTO t2 VALUES(blob(400), blob(400));
385 db function blob blob
[all …]
H A Dfts3_common.tcl338 upvar $varname blob
339 set n [read_fts3varint $blob ret]
340 set blob [string range $blob $n end]
344 upvar $varname blob
346 set blob [string range $blob $nLength end]
354 proc fts3_readleaf {blob} { argument
358 while {[string length $blob] > 0} {
359 set nPrefix [gobble_varint blob]
360 set nSuffix [gobble_varint blob]
363 append zTerm [gobble_string blob $nSuffix]
[all …]
H A Dwal_common.tcl42 proc wal_cksum {endian ckv1 ckv2 blob} { argument
52 binary scan $blob $scanpattern values
58 set blob [binary format I6 $intlist]
63 wal_cksum $endian c1 c2 $blob
64 append blob [binary format II $c1 $c2]
70 puts -nonewline $fd $blob
77 set blob [read $fd 24]
80 binary scan $blob I6 ints
H A Dfts3corrupt.test32 set blob [db one {SELECT root from t1_segdir}]
33 set blob [binary format a7ca* $blob 24 [string range $blob 8 end]]
34 execsql { UPDATE t1_segdir SET root = $blob }
67 set blob [db one {SELECT root from t1_segdir}]
68 set blob [binary format a*a* "\x00\x7F" [string range $blob 2 end]]
69 execsql { UPDATE t1_segdir SET root = $blob }
85 set blob [db one {SELECT quote(root) from t1_segdir}]
86 set blob [binary format a11a*a* $blob "\x7F" [string range $blob 12 end]]
87 execsql { UPDATE t1_segdir SET root = $blob }
120 set blob [binary format cca*cca*cca*cca*cca*cca*cca*cca*cca*cca*a* \
[all …]
H A Dcast.test33 } blob
47 execsql {SELECT CAST(x'616263' AS blob)}
51 } blob
78 execsql {SELECT CAST(NULL AS blob)}
108 execsql {SELECT CAST(123 AS blob)}
112 } blob
138 execsql {SELECT CAST(123.456 AS blob)}
142 } blob
168 execsql {SELECT CAST('123abc' AS blob)}
172 } blob
[all …]
H A Dfts3corrupt2.test65 proc set_byte {blob byte val} {
67 [string range $blob 0 [expr $byte-1]] \
69 [string range $blob [expr $byte+1] end] \
74 foreach {rowid sz blob} [
80 set b2 [set_byte $blob $i $c]
87 execsql { UPDATE t2_segments SET block = $blob WHERE rowid = $rowid }
91 foreach {rowid sz blob} [
96 set b2 [set_byte $blob $i $c]
103 execsql { UPDATE t2_segdir SET root = $blob WHERE rowid = $rowid }
H A Dincrblob2.test12 # Test that it is possible to have two open blob handles on a single
13 # blob object.
139 set data [string repeat "blob$ii" 500]
150 set str "blob$ii"
159 error "blob $ii: $msg"
246 # blob handle counts as a read-lock on its table.
266 set blob [db incrblob t1 data 1]
271 close $blob
283 set blob [db incrblob -readonly t1 data 4]
284 read $blob
[all …]
H A Dzeroblob.test12 # focus of this file is testing of the zero-filled blob functionality
76 # of the blob content occurs on the stack.
199 } {1 {string or blob too big}}
202 } {1 {string or blob too big}}
208 } {blob}
237 # and a zero-blob tail.
281 } {1 {string or blob too big}}
292 } {1 {string or blob too big}}
295 } {1 {string or blob too big}}
H A De_blobclose.test34 # It's not clear how to test that a blob handle really is closed.
35 # Attempting to use a closed blob handle will likely crash the process.
37 # the blob handle has been closed.
46 # EVIDENCE-OF: R-34027-00617 If the blob handle being closed was opened
48 # there are no other open read-write blob handles or active write
52 # read-write blob handles.
142 # valid open blob handle, the values returned by the sqlite3_errcode()
H A Dsqllimits1.test264 } {1 {string or blob too big}}
267 } {1 {string or blob too big}}
275 } {1 {string or blob too big}}
283 } {1 {string or blob too big}}
293 } {1 {string or blob too big}}
304 } {1 {string or blob too big}}
310 } {1 {string or blob too big}}
315 } {1 {string or blob too big}}
320 } {1 {string or blob too big}}
375 } {1 {string or blob too big}}
[all …]
/sqlite-3.40.0/ext/rtree/
H A DrtreeA.test43 set blob [db one {SELECT data FROM t1_node WHERE nodeno=$nodeno}]
45 set blob [string range $blob 0 $nTrunc]
46 db eval { UPDATE t1_node SET data = $blob WHERE nodeno=$nodeno }
50 set blob [db one "SELECT data FROM ${tbl}_node WHERE nodeno=1"]
53 binary scan $blob Su oldvalue
57 set blob [binary format Sua* $newvalue [string range $blob 2 end]]
58 db eval "UPDATE ${tbl}_node SET data = \$blob WHERE nodeno=1"
66 binary scan [string range $blob 2 end] Su oldvalue
70 set blob [binary format a*Sua* \
71 [string range $blob 0 1] $newvalue [string range $blob 4 end]
[all …]
H A Drtreecheck.test26 proc swap_int32 {blob i0 i1} {
27 binary scan $blob I* L
38 proc set_int32 {blob idx val} {
39 binary scan $blob I* L
/sqlite-3.40.0/ext/fts5/test/
H A Dfts5corrupt4.test34 proc mutate {blob i} {
35 set o [expr {$i % [string length $blob]}]
36 set a [string range $blob 0 $o-1]
37 set b [string range $blob $o+1 end]
/sqlite-3.40.0/ext/repair/test/
H A Dcheckfreelist01.test36 proc set_int {blob idx newval} {
37 binary scan $blob I* ints
43 proc get_int {blob idx} {
44 binary scan $blob I* ints
/sqlite-3.40.0/ext/lsm1/
H A Dlsm_tree.c1246 tblobFree(csr.pDb, &csr.blob); in treeRepairPtrs()
1562 tblobFree(pDb, &csr.blob); in treeInsertEntry()
1804 TreeBlob blob = {0, 0}; in lsmTreeDelete() local
1879 tblobFree(db, &csr.blob); in lsmTreeDelete()
1905 tblobFree(db, &blob); in lsmTreeDelete()
1936 tblobFree(pCsr->pDb, &pCsr->blob); in lsmTreeCursorDestroy()
1953 p = csrGetKey(pCsr, &pCsr->blob, pRc); in treeCsrCompare()
2427 TreeBlob blob = {0, 0}; in assert_delete_ranges_match() local
2442 tblobFree(csr.pDb, &csr.blob); in assert_delete_ranges_match()
2443 tblobFree(csr.pDb, &blob); in assert_delete_ranges_match()
[all …]

12345