Home
last modified time | relevance | path

Searched refs:encoding (Results 1 – 25 of 113) sorted by relevance

12345

/sqlite-3.40.0/test/
H A Denc2.test133 db eval {PRAGMA encoding}
454 PRAGMA encoding;
472 PRAGMA encoding;
500 PRAGMA encoding;
507 PRAGMA encoding;
515 PRAGMA encoding;
523 PRAGMA encoding;
530 PRAGMA encoding;
535 # Disallow encoding changes once the encoding has been set.
560 PRAGMA encoding=UTF8;
[all …]
H A Denc.test85 set utf16le_tcl [encoding convertto unicode $str]
95 set utf16be_tcl [encoding convertto unicode $str]
178 PRAGMA encoding = 'utf-8';
184 PRAGMA encoding;
190 PRAGMA encoding = 'UTF-16le';
193 PRAGMA encoding;
204 } {1 {attached databases must use the same text encoding as main database}}
210 PRAGMA encoding = 'UTF-16le';
218 PRAGMA encoding = 'UTF-16le';
219 PRAGMA encoding;
[all …]
H A Denc3.test23 PRAGMA encoding=utf16le;
24 PRAGMA encoding;
57 PRAGMA encoding
80 # Try to attach a database with a different encoding.
91 PRAGMA encoding='utf8';
93 PRAGMA encoding
101 } {1 {attached databases must use the same text encoding as main database}}
H A Dmalloc8.test29 # The setup is a database with UTF-16 encoding that contains a single
38 PRAGMA encoding='UTF-16';
46 PRAGMA encoding='UTF-16';
55 PRAGMA encoding='UTF-16';
64 PRAGMA encoding='UTF-16';
73 PRAGMA encoding='UTF-16';
81 PRAGMA encoding='UTF-16';
H A Dcapi3e.test20 # Make sure the system encoding is utf-8. Otherwise, if the system encoding
27 # encoding system utf-8
37 set r [encoding convertto unicode $str]
53 set r [encoding convertfrom unicode $str]
H A Dbind.test293 set enc [db eval {PRAGMA encoding}]
308 set "Unknown database encoding: $::enc"
323 sqlite3_bind_text16 $VM 1 [encoding convertto unicode hellothere] 10
324 sqlite3_bind_text16 $VM 2 [encoding convertto unicode ""] 0
325 sqlite3_bind_text16 $VM 3 [encoding convertto unicode world] 10
335 sqlite3_bind_text16 $VM 1 [encoding convertto unicode hi\000yall\000] 16
336 sqlite3_bind_text16 $VM 2 [encoding convertto unicode hi\000yall\000] 14
337 sqlite3_bind_text16 $VM 3 [encoding convertto unicode hi\000yall\000] -1
372 encoding convertfrom unicode [sqlite3_errmsg16 $DB]
387 encoding convertfrom unicode [sqlite3_errmsg16 $DB]
[all …]
H A Dioerr5.test39 # the UTF-8 encoding used internally.
42 set sql [encoding convertto unicode $zSql]
50 set sql [encoding convertto unicode $zSql]
120 fconfigure $fd -translation binary -encoding binary
141 fconfigure $fd -translation binary -encoding binary
H A Dfts3ai.test31 set r [encoding convertto unicode $str]
39 PRAGMA encoding = "UTF-16le";
44 execsql {PRAGMA encoding}
H A Dfts1i.test27 set r [encoding convertto unicode $str]
35 PRAGMA encoding = "UTF-16le";
40 execsql {PRAGMA encoding}
H A Dfts2i.test26 set r [encoding convertto unicode $str]
34 PRAGMA encoding = "UTF-16le";
39 execsql {PRAGMA encoding}
H A Dutf16align.test29 # Create a database with a UTF16 encoding. Put in lots of string
37 PRAGMA encoding=UTF16;
91 PRAGMA encoding=UTF16be;
H A Denc4.test48 db eval "PRAGMA encoding = \"$enc\""
51 db eval {PRAGMA encoding}
76 sqlite3_bind_text16 $S 1 [encoding convertto unicode $val] [expr $x*2]
H A Dcorrupt2.test72 fconfigure $f -encoding binary
92 fconfigure $f -encoding binary
112 fconfigure $f -encoding binary
182 fconfigure $fd -encoding binary -translation binary
230 fconfigure $fd -encoding binary -translation binary
395 fconfigure $fd -translation binary -encoding binary
413 fconfigure $fd -translation binary -encoding binary
434 fconfigure $fd -translation binary -encoding binary
462 fconfigure $fd -translation binary -encoding binary
H A Dnumcast.test23 db eval "PRAGMA encoding='$enc'"
24 set x [db eval {PRAGMA encoding}]
H A Dtkt3838.test14 # The ticket reports that the encoding is UTF8 on the DEFAULT VALUE of
30 PRAGMA encoding=UTF16;
H A Dshared.test79 # shared-8.*: Tests related to the text encoding of shared-cache databases.
642 # the wrong encoding for a database.
649 PRAGMA encoding = 'UTF-16';
654 string range [execsql {PRAGMA encoding;}] 0 end-2
660 PRAGMA encoding = 'UTF-8';
672 PRAGMA encoding;
686 PRAGMA encoding = 'UTF-16';
689 string range [execsql {PRAGMA encoding;} db2] 0 end-2
699 execsql { PRAGMA encoding }
702 set zDb16 "[encoding convertto unicode test.db]\x00\x00"
[all …]
H A DwindowC.test70 PRAGMA encoding=UTF16le;
78 PRAGMA encoding=UTF16be;
H A Dfunc5.test19 # VDBE program, as the function might have changed the encoding.
22 PRAGMA encoding=UTF16le;
H A Dfts3d.test309 # ALTER TABLE RENAME should work regardless of the database encoding.
316 PRAGMA encoding=UTF8;
332 PRAGMA encoding=UTF16le;
348 PRAGMA encoding=UTF16be;
H A Dbadutf.test22 db eval {PRAGMA encoding=UTF8}
47 db2 eval {PRAGMA encoding=UTF16be}
H A Dincrvacuum3.test53 fconfigure $fd -encoding binary -translation binary
54 fconfigure $fd2 -encoding binary -translation binary
/sqlite-3.40.0/ext/recover/
H A Drecoverpgsz.test42 fconfigure $fd -encoding binary -translation binary
49 fconfigure $fd2 -encoding binary -translation binary
74 fconfigure $fd2 -encoding binary -translation binary
H A Drecoverslowidx.test42 {PRAGMA encoding = 'UTF-8'}
70 {PRAGMA encoding = 'UTF-8'}
/sqlite-3.40.0/src/
H A Dprepare.c301 u8 encoding; in sqlite3InitOne() local
304 encoding = (u8)meta[BTREE_TEXT_ENCODING-1] & 3; in sqlite3InitOne()
305 if( encoding==0 ) encoding = SQLITE_UTF8; in sqlite3InitOne()
307 encoding = SQLITE_UTF8; in sqlite3InitOne()
309 sqlite3SetTextEncoding(db, encoding); in sqlite3InitOne()
H A Dvdbe.c1262 if( encoding!=SQLITE_UTF8 ){ in sqlite3VdbeExec()
1306 pOut->enc = encoding; in sqlite3VdbeExec()
1407 pOut->enc = encoding; in sqlite3VdbeExec()
1683 if( encoding>SQLITE_UTF8 ) nByte &= ~1; in sqlite3VdbeExec()
1688 pOut->enc = encoding; in sqlite3VdbeExec()
3021 pDest->enc = encoding; in sqlite3VdbeExec()
3035 pDest->enc = encoding; in sqlite3VdbeExec()
7475 pCtx->enc = encoding; in sqlite3VdbeExec()
8125 sContext.enc = encoding; in sqlite3VdbeExec()
8410 pCtx->enc = encoding; in sqlite3VdbeExec()
[all …]

12345