0000: 2f 2a 0a 2a 2a 20 32 30 30 38 20 4a 75 6e 65 20 /*.** 2008 June
0010: 31 33 0a 2a 2a 0a 2a 2a 20 54 68 65 20 61 75 74 13.**.** The aut
0020: 68 6f 72 20 64 69 73 63 6c 61 69 6d 73 20 63 6f hor disclaims co
0030: 70 79 72 69 67 68 74 20 74 6f 20 74 68 69 73 20 pyright to this
0040: 73 6f 75 72 63 65 20 63 6f 64 65 2e 20 20 49 6e source code. In
0050: 20 70 6c 61 63 65 20 6f 66 0a 2a 2a 20 61 20 6c place of.** a l
0060: 65 67 61 6c 20 6e 6f 74 69 63 65 2c 20 68 65 72 egal notice, her
0070: 65 20 69 73 20 61 20 62 6c 65 73 73 69 6e 67 3a e is a blessing:
0080: 0a 2a 2a 0a 2a 2a 20 20 20 20 4d 61 79 20 79 6f .**.** May yo
0090: 75 20 64 6f 20 67 6f 6f 64 20 61 6e 64 20 6e 6f u do good and no
00a0: 74 20 65 76 69 6c 2e 0a 2a 2a 20 20 20 20 4d 61 t evil..** Ma
00b0: 79 20 79 6f 75 20 66 69 6e 64 20 66 6f 72 67 69 y you find forgi
00c0: 76 65 6e 65 73 73 20 66 6f 72 20 79 6f 75 72 73 veness for yours
00d0: 65 6c 66 20 61 6e 64 20 66 6f 72 67 69 76 65 20 elf and forgive
00e0: 6f 74 68 65 72 73 2e 0a 2a 2a 20 20 20 20 4d 61 others..** Ma
00f0: 79 20 79 6f 75 20 73 68 61 72 65 20 66 72 65 65 y you share free
0100: 6c 79 2c 20 6e 65 76 65 72 20 74 61 6b 69 6e 67 ly, never taking
0110: 20 6d 6f 72 65 20 74 68 61 6e 20 79 6f 75 20 67 more than you g
0120: 69 76 65 2e 0a 2a 2a 0a 2a 2a 2a 2a 2a 2a 2a 2a ive..**.********
0130: 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a ****************
0140: 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a ****************
0150: 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a ****************
0160: 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a ****************
0170: 2a 0a 2a 2a 0a 2a 2a 20 54 68 69 73 20 66 69 6c *.**.** This fil
0180: 65 20 63 6f 6e 74 61 69 6e 73 20 64 65 66 69 6e e contains defin
0190: 69 74 69 6f 6e 73 20 6f 66 20 67 6c 6f 62 61 6c itions of global
01a0: 20 76 61 72 69 61 62 6c 65 73 20 61 6e 64 20 63 variables and c
01b0: 6f 6e 73 74 61 6e 74 73 2e 0a 2a 2f 0a 23 69 6e onstants..*/.#in
01c0: 63 6c 75 64 65 20 22 73 71 6c 69 74 65 49 6e 74 clude "sqliteInt
01d0: 2e 68 22 0a 0a 2f 2a 20 41 6e 20 61 72 72 61 79 .h"../* An array
01e0: 20 74 6f 20 6d 61 70 20 61 6c 6c 20 75 70 70 65 to map all uppe
01f0: 72 2d 63 61 73 65 20 63 68 61 72 61 63 74 65 72 r-case character
0200: 73 20 69 6e 74 6f 20 74 68 65 69 72 20 63 6f 72 s into their cor
0210: 72 65 73 70 6f 6e 64 69 6e 67 0a 2a 2a 20 6c 6f responding.** lo
0220: 77 65 72 2d 63 61 73 65 20 63 68 61 72 61 63 74 wer-case charact
0230: 65 72 2e 20 0a 2a 2a 0a 2a 2a 20 53 51 4c 69 74 er. .**.** SQLit
0240: 65 20 6f 6e 6c 79 20 63 6f 6e 73 69 64 65 72 73 e only considers
0250: 20 55 53 2d 41 53 43 49 49 20 28 6f 72 20 45 42 US-ASCII (or EB
0260: 43 44 49 43 29 20 63 68 61 72 61 63 74 65 72 73 CDIC) characters
0270: 2e 20 20 57 65 20 64 6f 20 6e 6f 74 0a 2a 2a 20 . We do not.**
0280: 68 61 6e 64 6c 65 20 63 61 73 65 20 63 6f 6e 76 handle case conv
0290: 65 72 73 69 6f 6e 73 20 66 6f 72 20 74 68 65 20 ersions for the
02a0: 55 54 46 20 63 68 61 72 61 63 74 65 72 20 73 65 UTF character se
02b0: 74 20 73 69 6e 63 65 20 74 68 65 20 74 61 62 6c t since the tabl
02c0: 65 73 0a 2a 2a 20 69 6e 76 6f 6c 76 65 64 20 61 es.** involved a
02d0: 72 65 20 6e 65 61 72 6c 79 20 61 73 20 62 69 67 re nearly as big
02e0: 20 6f 72 20 62 69 67 67 65 72 20 74 68 61 6e 20 or bigger than
02f0: 53 51 4c 69 74 65 20 69 74 73 65 6c 66 2e 0a 2a SQLite itself..*
0300: 2f 0a 63 6f 6e 73 74 20 75 6e 73 69 67 6e 65 64 /.const unsigned
0310: 20 63 68 61 72 20 73 71 6c 69 74 65 33 55 70 70 char sqlite3Upp
0320: 65 72 54 6f 4c 6f 77 65 72 5b 5d 20 3d 20 7b 0a erToLower[] = {.
0330: 23 69 66 64 65 66 20 53 51 4c 49 54 45 5f 41 53 #ifdef SQLITE_AS
0340: 43 49 49 0a 20 20 20 20 20 20 30 2c 20 20 31 2c CII. 0, 1,
0350: 20 20 32 2c 20 20 33 2c 20 20 34 2c 20 20 35 2c 2, 3, 4, 5,
0360: 20 20 36 2c 20 20 37 2c 20 20 38 2c 20 20 39 2c 6, 7, 8, 9,
0370: 20 31 30 2c 20 31 31 2c 20 31 32 2c 20 31 33 2c 10, 11, 12, 13,
0380: 20 31 34 2c 20 31 35 2c 20 31 36 2c 20 31 37 2c 14, 15, 16, 17,
0390: 0a 20 20 20 20 20 31 38 2c 20 31 39 2c 20 32 30 . 18, 19, 20
03a0: 2c 20 32 31 2c 20 32 32 2c 20 32 33 2c 20 32 34 , 21, 22, 23, 24
03b0: 2c 20 32 35 2c 20 32 36 2c 20 32 37 2c 20 32 38 , 25, 26, 27, 28
03c0: 2c 20 32 39 2c 20 33 30 2c 20 33 31 2c 20 33 32 , 29, 30, 31, 32
03d0: 2c 20 33 33 2c 20 33 34 2c 20 33 35 2c 0a 20 20 , 33, 34, 35,.
03e0: 20 20 20 33 36 2c 20 33 37 2c 20 33 38 2c 20 33 36, 37, 38, 3
03f0: 39 2c 20 34 30 2c 20 34 31 2c 20 34 32 2c 20 34 9, 40, 41, 42, 4
0400: 33 2c 20 34 34 2c 20 34 35 2c 20 34 36 2c 20 34 3, 44, 45, 46, 4
0410: 37 2c 20 34 38 2c 20 34 39 2c 20 35 30 2c 20 35 7, 48, 49, 50, 5
0420: 31 2c 20 35 32 2c 20 35 33 2c 0a 20 20 20 20 20 1, 52, 53,.
0430: 35 34 2c 20 35 35 2c 20 35 36 2c 20 35 37 2c 20 54, 55, 56, 57,
0440: 35 38 2c 20 35 39 2c 20 36 30 2c 20 36 31 2c 20 58, 59, 60, 61,
0450: 36 32 2c 20 36 33 2c 20 36 34 2c 20 39 37 2c 20 62, 63, 64, 97,
0460: 39 38 2c 20 39 39 2c 31 30 30 2c 31 30 31 2c 31 98, 99,100,101,1
0470: 30 32 2c 31 30 33 2c 0a 20 20 20 20 31 30 34 2c 02,103,. 104,
0480: 31 30 35 2c 31 30 36 2c 31 30 37 2c 31 30 38 2c 105,106,107,108,
0490: 31 30 39 2c 31 31 30 2c 31 31 31 2c 31 31 32 2c 109,110,111,112,
04a0: 31 31 33 2c 31 31 34 2c 31 31 35 2c 31 31 36 2c 113,114,115,116,
04b0: 31 31 37 2c 31 31 38 2c 31 31 39 2c 31 32 30 2c 117,118,119,120,
04c0: 31 32 31 2c 0a 20 20 20 20 31 32 32 2c 20 39 31 121,. 122, 91
04d0: 2c 20 39 32 2c 20 39 33 2c 20 39 34 2c 20 39 35 , 92, 93, 94, 95
04e0: 2c 20 39 36 2c 20 39 37 2c 20 39 38 2c 20 39 39 , 96, 97, 98, 99
04f0: 2c 31 30 30 2c 31 30 31 2c 31 30 32 2c 31 30 33 ,100,101,102,103
0500: 2c 31 30 34 2c 31 30 35 2c 31 30 36 2c 31 30 37 ,104,105,106,107
0510: 2c 0a 20 20 20 20 31 30 38 2c 31 30 39 2c 31 31 ,. 108,109,11
0520: 30 2c 31 31 31 2c 31 31 32 2c 31 31 33 2c 31 31 0,111,112,113,11
0530: 34 2c 31 31 35 2c 31 31 36 2c 31 31 37 2c 31 31 4,115,116,117,11
0540: 38 2c 31 31 39 2c 31 32 30 2c 31 32 31 2c 31 32 8,119,120,121,12
0550: 32 2c 31 32 33 2c 31 32 34 2c 31 32 35 2c 0a 20 2,123,124,125,.
0560: 20 20 20 31 32 36 2c 31 32 37 2c 31 32 38 2c 31 126,127,128,1
0570: 32 39 2c 31 33 30 2c 31 33 31 2c 31 33 32 2c 31 29,130,131,132,1
0580: 33 33 2c 31 33 34 2c 31 33 35 2c 31 33 36 2c 31 33,134,135,136,1
0590: 33 37 2c 31 33 38 2c 31 33 39 2c 31 34 30 2c 31 37,138,139,140,1
05a0: 34 31 2c 31 34 32 2c 31 34 33 2c 0a 20 20 20 20 41,142,143,.
05b0: 31 34 34 2c 31 34 35 2c 31 34 36 2c 31 34 37 2c 144,145,146,147,
05c0: 31 34 38 2c 31 34 39 2c 31 35 30 2c 31 35 31 2c 148,149,150,151,
05d0: 31 35 32 2c 31 35 33 2c 31 35 34 2c 31 35 35 2c 152,153,154,155,
05e0: 31 35 36 2c 31 35 37 2c 31 35 38 2c 31 35 39 2c 156,157,158,159,
05f0: 31 36 30 2c 31 36 31 2c 0a 20 20 20 20 31 36 32 160,161,. 162
0600: 2c 31 36 33 2c 31 36 34 2c 31 36 35 2c 31 36 36 ,163,164,165,166
0610: 2c 31 36 37 2c 31 36 38 2c 31 36 39 2c 31 37 30 ,167,168,169,170
0620: 2c 31 37 31 2c 31 37 32 2c 31 37 33 2c 31 37 34 ,171,172,173,174
0630: 2c 31 37 35 2c 31 37 36 2c 31 37 37 2c 31 37 38 ,175,176,177,178
0640: 2c 31 37 39 2c 0a 20 20 20 20 31 38 30 2c 31 38 ,179,. 180,18
0650: 31 2c 31 38 32 2c 31 38 33 2c 31 38 34 2c 31 38 1,182,183,184,18
0660: 35 2c 31 38 36 2c 31 38 37 2c 31 38 38 2c 31 38 5,186,187,188,18
0670: 39 2c 31 39 30 2c 31 39 31 2c 31 39 32 2c 31 39 9,190,191,192,19
0680: 33 2c 31 39 34 2c 31 39 35 2c 31 39 36 2c 31 39 3,194,195,196,19
0690: 37 2c 0a 20 20 20 20 31 39 38 2c 31 39 39 2c 32 7,. 198,199,2
06a0: 30 30 2c 32 30 31 2c 32 30 32 2c 32 30 33 2c 32 00,201,202,203,2
06b0: 30 34 2c 32 30 35 2c 32 30 36 2c 32 30 37 2c 32 04,205,206,207,2
06c0: 30 38 2c 32 30 39 2c 32 31 30 2c 32 31 31 2c 32 08,209,210,211,2
06d0: 31 32 2c 32 31 33 2c 32 31 34 2c 32 31 35 2c 0a 12,213,214,215,.
06e0: 20 20 20 20 32 31 36 2c 32 31 37 2c 32 31 38 2c 216,217,218,
06f0: 32 31 39 2c 32 32 30 2c 32 32 31 2c 32 32 32 2c 219,220,221,222,
0700: 32 32 33 2c 32 32 34 2c 32 32 35 2c 32 32 36 2c 223,224,225,226,
0710: 32 32 37 2c 32 32 38 2c 32 32 39 2c 32 33 30 2c 227,228,229,230,
0720: 32 33 31 2c 32 33 32 2c 32 33 33 2c 0a 20 20 20 231,232,233,.
0730: 20 32 33 34 2c 32 33 35 2c 32 33 36 2c 32 33 37 234,235,236,237
0740: 2c 32 33 38 2c 32 33 39 2c 32 34 30 2c 32 34 31 ,238,239,240,241
0750: 2c 32 34 32 2c 32 34 33 2c 32 34 34 2c 32 34 35 ,242,243,244,245
0760: 2c 32 34 36 2c 32 34 37 2c 32 34 38 2c 32 34 39 ,246,247,248,249
0770: 2c 32 35 30 2c 32 35 31 2c 0a 20 20 20 20 32 35 ,250,251,. 25
0780: 32 2c 32 35 33 2c 32 35 34 2c 32 35 35 0a 23 65 2,253,254,255.#e
0790: 6e 64 69 66 0a 23 69 66 64 65 66 20 53 51 4c 49 ndif.#ifdef SQLI
07a0: 54 45 5f 45 42 43 44 49 43 0a 20 20 20 20 20 20 TE_EBCDIC.
07b0: 30 2c 20 20 31 2c 20 20 32 2c 20 20 33 2c 20 20 0, 1, 2, 3,
07c0: 34 2c 20 20 35 2c 20 20 36 2c 20 20 37 2c 20 20 4, 5, 6, 7,
07d0: 38 2c 20 20 39 2c 20 31 30 2c 20 31 31 2c 20 31 8, 9, 10, 11, 1
07e0: 32 2c 20 31 33 2c 20 31 34 2c 20 31 35 2c 20 2f 2, 13, 14, 15, /
07f0: 2a 20 30 78 20 2a 2f 0a 20 20 20 20 20 31 36 2c * 0x */. 16,
0800: 20 31 37 2c 20 31 38 2c 20 31 39 2c 20 32 30 2c 17, 18, 19, 20,
0810: 20 32 31 2c 20 32 32 2c 20 32 33 2c 20 32 34 2c 21, 22, 23, 24,
0820: 20 32 35 2c 20 32 36 2c 20 32 37 2c 20 32 38 2c 25, 26, 27, 28,
0830: 20 32 39 2c 20 33 30 2c 20 33 31 2c 20 2f 2a 20 29, 30, 31, /*
0840: 31 78 20 2a 2f 0a 20 20 20 20 20 33 32 2c 20 33 1x */. 32, 3
0850: 33 2c 20 33 34 2c 20 33 35 2c 20 33 36 2c 20 33 3, 34, 35, 36, 3
0860: 37 2c 20 33 38 2c 20 33 39 2c 20 34 30 2c 20 34 7, 38, 39, 40, 4
0870: 31 2c 20 34 32 2c 20 34 33 2c 20 34 34 2c 20 34 1, 42, 43, 44, 4
0880: 35 2c 20 34 36 2c 20 34 37 2c 20 2f 2a 20 32 78 5, 46, 47, /* 2x
0890: 20 2a 2f 0a 20 20 20 20 20 34 38 2c 20 34 39 2c */. 48, 49,
08a0: 20 35 30 2c 20 35 31 2c 20 35 32 2c 20 35 33 2c 50, 51, 52, 53,
08b0: 20 35 34 2c 20 35 35 2c 20 35 36 2c 20 35 37 2c 54, 55, 56, 57,
08c0: 20 35 38 2c 20 35 39 2c 20 36 30 2c 20 36 31 2c 58, 59, 60, 61,
08d0: 20 36 32 2c 20 36 33 2c 20 2f 2a 20 33 78 20 2a 62, 63, /* 3x *
08e0: 2f 0a 20 20 20 20 20 36 34 2c 20 36 35 2c 20 36 /. 64, 65, 6
08f0: 36 2c 20 36 37 2c 20 36 38 2c 20 36 39 2c 20 37 6, 67, 68, 69, 7
0900: 30 2c 20 37 31 2c 20 37 32 2c 20 37 33 2c 20 37 0, 71, 72, 73, 7
0910: 34 2c 20 37 35 2c 20 37 36 2c 20 37 37 2c 20 37 4, 75, 76, 77, 7
0920: 38 2c 20 37 39 2c 20 2f 2a 20 34 78 20 2a 2f 0a 8, 79, /* 4x */.
0930: 20 20 20 20 20 38 30 2c 20 38 31 2c 20 38 32 2c 80, 81, 82,
0940: 20 38 33 2c 20 38 34 2c 20 38 35 2c 20 38 36 2c 83, 84, 85, 86,
0950: 20 38 37 2c 20 38 38 2c 20 38 39 2c 20 39 30 2c 87, 88, 89, 90,
0960: 20 39 31 2c 20 39 32 2c 20 39 33 2c 20 39 34 2c 91, 92, 93, 94,
0970: 20 39 35 2c 20 2f 2a 20 35 78 20 2a 2f 0a 20 20 95, /* 5x */.
0980: 20 20 20 39 36 2c 20 39 37 2c 20 39 38 2c 20 39 96, 97, 98, 9
0990: 39 2c 31 30 30 2c 31 30 31 2c 31 30 32 2c 31 30 9,100,101,102,10
09a0: 33 2c 31 30 34 2c 31 30 35 2c 31 30 36 2c 31 30 3,104,105,106,10
09b0: 37 2c 31 30 38 2c 31 30 39 2c 31 31 30 2c 31 31 7,108,109,110,11
09c0: 31 2c 20 2f 2a 20 36 78 20 2a 2f 0a 20 20 20 20 1, /* 6x */.
09d0: 31 31 32 2c 31 31 33 2c 31 31 34 2c 31 31 35 2c 112,113,114,115,
09e0: 31 31 36 2c 31 31 37 2c 31 31 38 2c 31 31 39 2c 116,117,118,119,
09f0: 31 32 30 2c 31 32 31 2c 31 32 32 2c 31 32 33 2c 120,121,122,123,
0a00: 31 32 34 2c 31 32 35 2c 31 32 36 2c 31 32 37 2c 124,125,126,127,
0a10: 20 2f 2a 20 37 78 20 2a 2f 0a 20 20 20 20 31 32 /* 7x */. 12
0a20: 38 2c 31 32 39 2c 31 33 30 2c 31 33 31 2c 31 33 8,129,130,131,13
0a30: 32 2c 31 33 33 2c 31 33 34 2c 31 33 35 2c 31 33 2,133,134,135,13
0a40: 36 2c 31 33 37 2c 31 33 38 2c 31 33 39 2c 31 34 6,137,138,139,14
0a50: 30 2c 31 34 31 2c 31 34 32 2c 31 34 33 2c 20 2f 0,141,142,143, /
0a60: 2a 20 38 78 20 2a 2f 0a 20 20 20 20 31 34 34 2c * 8x */. 144,
0a70: 31 34 35 2c 31 34 36 2c 31 34 37 2c 31 34 38 2c 145,146,147,148,
0a80: 31 34 39 2c 31 35 30 2c 31 35 31 2c 31 35 32 2c 149,150,151,152,
0a90: 31 35 33 2c 31 35 34 2c 31 35 35 2c 31 35 36 2c 153,154,155,156,
0aa0: 31 35 37 2c 31 35 38 2c 31 35 39 2c 20 2f 2a 20 157,158,159, /*
0ab0: 39 78 20 2a 2f 0a 20 20 20 20 31 36 30 2c 31 36 9x */. 160,16
0ac0: 31 2c 31 36 32 2c 31 36 33 2c 31 36 34 2c 31 36 1,162,163,164,16
0ad0: 35 2c 31 36 36 2c 31 36 37 2c 31 36 38 2c 31 36 5,166,167,168,16
0ae0: 39 2c 31 37 30 2c 31 37 31 2c 31 34 30 2c 31 34 9,170,171,140,14
0af0: 31 2c 31 34 32 2c 31 37 35 2c 20 2f 2a 20 41 78 1,142,175, /* Ax
0b00: 20 2a 2f 0a 20 20 20 20 31 37 36 2c 31 37 37 2c */. 176,177,
0b10: 31 37 38 2c 31 37 39 2c 31 38 30 2c 31 38 31 2c 178,179,180,181,
0b20: 31 38 32 2c 31 38 33 2c 31 38 34 2c 31 38 35 2c 182,183,184,185,
0b30: 31 38 36 2c 31 38 37 2c 31 38 38 2c 31 38 39 2c 186,187,188,189,
0b40: 31 39 30 2c 31 39 31 2c 20 2f 2a 20 42 78 20 2a 190,191, /* Bx *
0b50: 2f 0a 20 20 20 20 31 39 32 2c 31 32 39 2c 31 33 /. 192,129,13
0b60: 30 2c 31 33 31 2c 31 33 32 2c 31 33 33 2c 31 33 0,131,132,133,13
0b70: 34 2c 31 33 35 2c 31 33 36 2c 31 33 37 2c 32 30 4,135,136,137,20
0b80: 32 2c 32 30 33 2c 32 30 34 2c 32 30 35 2c 32 30 2,203,204,205,20
0b90: 36 2c 32 30 37 2c 20 2f 2a 20 43 78 20 2a 2f 0a 6,207, /* Cx */.
0ba0: 20 20 20 20 32 30 38 2c 31 34 35 2c 31 34 36 2c 208,145,146,
0bb0: 31 34 37 2c 31 34 38 2c 31 34 39 2c 31 35 30 2c 147,148,149,150,
0bc0: 31 35 31 2c 31 35 32 2c 31 35 33 2c 32 31 38 2c 151,152,153,218,
0bd0: 32 31 39 2c 32 32 30 2c 32 32 31 2c 32 32 32 2c 219,220,221,222,
0be0: 32 32 33 2c 20 2f 2a 20 44 78 20 2a 2f 0a 20 20 223, /* Dx */.
0bf0: 20 20 32 32 34 2c 32 32 35 2c 31 36 32 2c 31 36 224,225,162,16
0c00: 33 2c 31 36 34 2c 31 36 35 2c 31 36 36 2c 31 36 3,164,165,166,16
0c10: 37 2c 31 36 38 2c 31 36 39 2c 32 33 34 2c 32 33 7,168,169,234,23
0c20: 35 2c 32 33 36 2c 32 33 37 2c 32 33 38 2c 32 33 5,236,237,238,23
0c30: 39 2c 20 2f 2a 20 45 78 20 2a 2f 0a 20 20 20 20 9, /* Ex */.
0c40: 32 34 30 2c 32 34 31 2c 32 34 32 2c 32 34 33 2c 240,241,242,243,
0c50: 32 34 34 2c 32 34 35 2c 32 34 36 2c 32 34 37 2c 244,245,246,247,
0c60: 32 34 38 2c 32 34 39 2c 32 35 30 2c 32 35 31 2c 248,249,250,251,
0c70: 32 35 32 2c 32 35 33 2c 32 35 34 2c 32 35 35 2c 252,253,254,255,
0c80: 20 2f 2a 20 46 78 20 2a 2f 0a 23 65 6e 64 69 66 /* Fx */.#endif
0c90: 0a 7d 3b 0a 0a 2f 2a 0a 2a 2a 20 54 68 65 20 66 .};../*.** The f
0ca0: 6f 6c 6c 6f 77 69 6e 67 20 32 35 36 20 62 79 74 ollowing 256 byt
0cb0: 65 20 6c 6f 6f 6b 75 70 20 74 61 62 6c 65 20 69 e lookup table i
0cc0: 73 20 75 73 65 64 20 74 6f 20 73 75 70 70 6f 72 s used to suppor
0cd0: 74 20 53 51 4c 69 74 65 73 20 62 75 69 6c 74 2d t SQLites built-
0ce0: 69 6e 0a 2a 2a 20 65 71 75 69 76 61 6c 65 6e 74 in.** equivalent
0cf0: 73 20 74 6f 20 74 68 65 20 66 6f 6c 6c 6f 77 69 s to the followi
0d00: 6e 67 20 73 74 61 6e 64 61 72 64 20 6c 69 62 72 ng standard libr
0d10: 61 72 79 20 66 75 6e 63 74 69 6f 6e 73 3a 0a 2a ary functions:.*
0d20: 2a 0a 2a 2a 20 20 20 69 73 73 70 61 63 65 28 29 *.** isspace()
0d30: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
0d40: 20 20 20 20 20 20 20 20 30 78 30 31 0a 2a 2a 20 0x01.**
0d50: 20 20 69 73 61 6c 70 68 61 28 29 20 20 20 20 20 isalpha()
0d60: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
0d70: 20 20 20 30 78 30 32 0a 2a 2a 20 20 20 69 73 64 0x02.** isd
0d80: 69 67 69 74 28 29 20 20 20 20 20 20 20 20 20 20 igit()
0d90: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 30 78 0x
0da0: 30 34 0a 2a 2a 20 20 20 69 73 61 6c 6e 75 6d 28 04.** isalnum(
0db0: 29 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 )
0dc0: 20 20 20 20 20 20 20 20 20 30 78 30 36 0a 2a 2a 0x06.**
0dd0: 20 20 20 69 73 78 64 69 67 69 74 28 29 20 20 20 isxdigit()
0de0: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
0df0: 20 20 20 20 30 78 30 38 0a 2a 2a 20 20 20 74 6f 0x08.** to
0e00: 75 70 70 65 72 28 29 20 20 20 20 20 20 20 20 20 upper()
0e10: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 30 0
0e20: 78 32 30 0a 2a 2a 20 20 20 53 51 4c 69 74 65 20 x20.** SQLite
0e30: 69 64 65 6e 74 69 66 69 65 72 20 63 68 61 72 61 identifier chara
0e40: 63 74 65 72 20 20 20 20 20 20 30 78 34 30 0a 2a cter 0x40.*
0e50: 2a 20 20 20 51 75 6f 74 65 20 63 68 61 72 61 63 * Quote charac
0e60: 74 65 72 20 20 20 20 20 20 20 20 20 20 20 20 20 ter
0e70: 20 20 20 20 20 30 78 38 30 0a 2a 2a 0a 2a 2a 20 0x80.**.**
0e80: 42 69 74 20 30 78 32 30 20 69 73 20 73 65 74 20 Bit 0x20 is set
0e90: 69 66 20 74 68 65 20 6d 61 70 70 65 64 20 63 68 if the mapped ch
0ea0: 61 72 61 63 74 65 72 20 72 65 71 75 69 72 65 73 aracter requires
0eb0: 20 74 72 61 6e 73 6c 61 74 69 6f 6e 20 74 6f 20 translation to
0ec0: 75 70 70 65 72 0a 2a 2a 20 63 61 73 65 2e 20 69 upper.** case. i
0ed0: 2e 65 2e 20 69 66 20 74 68 65 20 63 68 61 72 61 .e. if the chara
0ee0: 63 74 65 72 20 69 73 20 61 20 6c 6f 77 65 72 2d cter is a lower-
0ef0: 63 61 73 65 20 41 53 43 49 49 20 63 68 61 72 61 case ASCII chara
0f00: 63 74 65 72 2e 0a 2a 2a 20 49 66 20 78 20 69 73 cter..** If x is
0f10: 20 61 20 6c 6f 77 65 72 2d 63 61 73 65 20 41 53 a lower-case AS
0f20: 43 49 49 20 63 68 61 72 61 63 74 65 72 2c 20 74 CII character, t
0f30: 68 65 6e 20 69 74 73 20 75 70 70 65 72 2d 63 61 hen its upper-ca
0f40: 73 65 20 65 71 75 69 76 61 6c 65 6e 74 0a 2a 2a se equivalent.**
0f50: 20 69 73 20 28 78 20 2d 20 30 78 32 30 29 2e 20 is (x - 0x20).
0f60: 54 68 65 72 65 66 6f 72 65 20 74 6f 75 70 70 65 Therefore touppe
0f70: 72 28 29 20 63 61 6e 20 62 65 20 69 6d 70 6c 65 r() can be imple
0f80: 6d 65 6e 74 65 64 20 61 73 3a 0a 2a 2a 0a 2a 2a mented as:.**.**
0f90: 20 20 20 28 78 20 26 20 7e 28 6d 61 70 5b 78 5d (x & ~(map[x]
0fa0: 26 30 78 32 30 29 29 0a 2a 2a 0a 2a 2a 20 54 68 &0x20)).**.** Th
0fb0: 65 20 65 71 75 69 76 61 6c 65 6e 74 20 6f 66 20 e equivalent of
0fc0: 74 6f 6c 6f 77 65 72 28 29 20 69 73 20 69 6d 70 tolower() is imp
0fd0: 6c 65 6d 65 6e 74 65 64 20 75 73 69 6e 67 20 74 lemented using t
0fe0: 68 65 20 73 71 6c 69 74 65 33 55 70 70 65 72 54 he sqlite3UpperT
0ff0: 6f 4c 6f 77 65 72 5b 5d 0a 2a 2a 20 61 72 72 61 oLower[].** arra
1000: 79 2e 20 74 6f 6c 6f 77 65 72 28 29 20 69 73 20 y. tolower() is
1010: 75 73 65 64 20 6d 6f 72 65 20 6f 66 74 65 6e 20 used more often
1020: 74 68 61 6e 20 74 6f 75 70 70 65 72 28 29 20 62 than toupper() b
1030: 79 20 53 51 4c 69 74 65 2e 0a 2a 2a 0a 2a 2a 20 y SQLite..**.**
1040: 42 69 74 20 30 78 34 30 20 69 73 20 73 65 74 20 Bit 0x40 is set
1050: 69 66 20 74 68 65 20 63 68 61 72 61 63 74 65 72 if the character
1060: 20 69 73 20 6e 6f 6e 2d 61 6c 70 68 61 6e 75 6d is non-alphanum
1070: 65 72 69 63 20 61 6e 64 20 63 61 6e 20 62 65 20 eric and can be
1080: 75 73 65 64 20 69 6e 20 61 6e 20 0a 2a 2a 20 53 used in an .** S
1090: 51 4c 69 74 65 20 69 64 65 6e 74 69 66 69 65 72 QLite identifier
10a0: 2e 20 20 49 64 65 6e 74 69 66 69 65 72 73 20 61 . Identifiers a
10b0: 72 65 20 61 6c 70 68 61 6e 75 6d 65 72 69 63 73 re alphanumerics
10c0: 2c 20 22 5f 22 2c 20 22 24 22 2c 20 61 6e 64 20 , "_", "$", and
10d0: 61 6e 79 0a 2a 2a 20 6e 6f 6e 2d 41 53 43 49 49 any.** non-ASCII
10e0: 20 55 54 46 20 63 68 61 72 61 63 74 65 72 2e 20 UTF character.
10f0: 48 65 6e 63 65 20 74 68 65 20 74 65 73 74 20 66 Hence the test f
1100: 6f 72 20 77 68 65 74 68 65 72 20 6f 72 20 6e 6f or whether or no
1110: 74 20 61 20 63 68 61 72 61 63 74 65 72 20 69 73 t a character is
1120: 0a 2a 2a 20 70 61 72 74 20 6f 66 20 61 6e 20 69 .** part of an i
1130: 64 65 6e 74 69 66 69 65 72 20 69 73 20 30 78 34 dentifier is 0x4
1140: 36 2e 0a 2a 2f 0a 23 69 66 64 65 66 20 53 51 4c 6..*/.#ifdef SQL
1150: 49 54 45 5f 41 53 43 49 49 0a 63 6f 6e 73 74 20 ITE_ASCII.const
1160: 75 6e 73 69 67 6e 65 64 20 63 68 61 72 20 73 71 unsigned char sq
1170: 6c 69 74 65 33 43 74 79 70 65 4d 61 70 5b 32 35 lite3CtypeMap[25
1180: 36 5d 20 3d 20 7b 0a 20 20 30 78 30 30 2c 20 30 6] = {. 0x00, 0
1190: 78 30 30 2c 20 30 78 30 30 2c 20 30 78 30 30 2c x00, 0x00, 0x00,
11a0: 20 30 78 30 30 2c 20 30 78 30 30 2c 20 30 78 30 0x00, 0x00, 0x0
11b0: 30 2c 20 30 78 30 30 2c 20 20 2f 2a 20 30 30 2e 0, 0x00, /* 00.
11c0: 2e 30 37 20 20 20 20 2e 2e 2e 2e 2e 2e 2e 2e 20 .07 ........
11d0: 2a 2f 0a 20 20 30 78 30 30 2c 20 30 78 30 31 2c */. 0x00, 0x01,
11e0: 20 30 78 30 31 2c 20 30 78 30 31 2c 20 30 78 30 0x01, 0x01, 0x0
11f0: 31 2c 20 30 78 30 31 2c 20 30 78 30 30 2c 20 30 1, 0x01, 0x00, 0
1200: 78 30 30 2c 20 20 2f 2a 20 30 38 2e 2e 30 66 20 x00, /* 08..0f
1210: 20 20 20 2e 2e 2e 2e 2e 2e 2e 2e 20 2a 2f 0a 20 ........ */.
1220: 20 30 78 30 30 2c 20 30 78 30 30 2c 20 30 78 30 0x00, 0x00, 0x0
1230: 30 2c 20 30 78 30 30 2c 20 30 78 30 30 2c 20 30 0, 0x00, 0x00, 0
1240: 78 30 30 2c 20 30 78 30 30 2c 20 30 78 30 30 2c x00, 0x00, 0x00,
1250: 20 20 2f 2a 20 31 30 2e 2e 31 37 20 20 20 20 2e /* 10..17 .
1260: 2e 2e 2e 2e 2e 2e 2e 20 2a 2f 0a 20 20 30 78 30 ....... */. 0x0
1270: 30 2c 20 30 78 30 30 2c 20 30 78 30 30 2c 20 30 0, 0x00, 0x00, 0
1280: 78 30 30 2c 20 30 78 30 30 2c 20 30 78 30 30 2c x00, 0x00, 0x00,
1290: 20 30 78 30 30 2c 20 30 78 30 30 2c 20 20 2f 2a 0x00, 0x00, /*
12a0: 20 31 38 2e 2e 31 66 20 20 20 20 2e 2e 2e 2e 2e 18..1f .....
12b0: 2e 2e 2e 20 2a 2f 0a 20 20 30 78 30 31 2c 20 30 ... */. 0x01, 0
12c0: 78 30 30 2c 20 30 78 38 30 2c 20 30 78 30 30 2c x00, 0x80, 0x00,
12d0: 20 30 78 34 30 2c 20 30 78 30 30 2c 20 30 78 30 0x40, 0x00, 0x0
12e0: 30 2c 20 30 78 38 30 2c 20 20 2f 2a 20 32 30 2e 0, 0x80, /* 20.
12f0: 2e 32 37 20 20 20 20 20 21 22 23 24 25 26 27 20 .27 !"#$%&'
1300: 2a 2f 0a 20 20 30 78 30 30 2c 20 30 78 30 30 2c */. 0x00, 0x00,
1310: 20 30 78 30 30 2c 20 30 78 30 30 2c 20 30 78 30 0x00, 0x00, 0x0
1320: 30 2c 20 30 78 30 30 2c 20 30 78 30 30 2c 20 30 0, 0x00, 0x00, 0
1330: 78 30 30 2c 20 20 2f 2a 20 32 38 2e 2e 32 66 20 x00, /* 28..2f
1340: 20 20 20 28 29 2a 2b 2c 2d 2e 2f 20 2a 2f 0a 20 ()*+,-./ */.
1350: 20 30 78 30 63 2c 20 30 78 30 63 2c 20 30 78 30 0x0c, 0x0c, 0x0
1360: 63 2c 20 30 78 30 63 2c 20 30 78 30 63 2c 20 30 c, 0x0c, 0x0c, 0
1370: 78 30 63 2c 20 30 78 30 63 2c 20 30 78 30 63 2c x0c, 0x0c, 0x0c,
1380: 20 20 2f 2a 20 33 30 2e 2e 33 37 20 20 20 20 30 /* 30..37 0
1390: 31 32 33 34 35 36 37 20 2a 2f 0a 20 20 30 78 30 1234567 */. 0x0
13a0: 63 2c 20 30 78 30 63 2c 20 30 78 30 30 2c 20 30 c, 0x0c, 0x00, 0
13b0: 78 30 30 2c 20 30 78 30 30 2c 20 30 78 30 30 2c x00, 0x00, 0x00,
13c0: 20 30 78 30 30 2c 20 30 78 30 30 2c 20 20 2f 2a 0x00, 0x00, /*
13d0: 20 33 38 2e 2e 33 66 20 20 20 20 38 39 3a 3b 3c 38..3f 89:;<
13e0: 3d 3e 3f 20 2a 2f 0a 0a 20 20 30 78 30 30 2c 20 =>? */.. 0x00,
13f0: 30 78 30 61 2c 20 30 78 30 61 2c 20 30 78 30 61 0x0a, 0x0a, 0x0a
1400: 2c 20 30 78 30 61 2c 20 30 78 30 61 2c 20 30 78 , 0x0a, 0x0a, 0x
1410: 30 61 2c 20 30 78 30 32 2c 20 20 2f 2a 20 34 30 0a, 0x02, /* 40
1420: 2e 2e 34 37 20 20 20 20 40 41 42 43 44 45 46 47 ..47 @ABCDEFG
1430: 20 2a 2f 0a 20 20 30 78 30 32 2c 20 30 78 30 32 */. 0x02, 0x02
1440: 2c 20 30 78 30 32 2c 20 30 78 30 32 2c 20 30 78 , 0x02, 0x02, 0x
1450: 30 32 2c 20 30 78 30 32 2c 20 30 78 30 32 2c 20 02, 0x02, 0x02,
1460: 30 78 30 32 2c 20 20 2f 2a 20 34 38 2e 2e 34 66 0x02, /* 48..4f
1470: 20 20 20 20 48 49 4a 4b 4c 4d 4e 4f 20 2a 2f 0a HIJKLMNO */.
1480: 20 20 30 78 30 32 2c 20 30 78 30 32 2c 20 30 78 0x02, 0x02, 0x
1490: 30 32 2c 20 30 78 30 32 2c 20 30 78 30 32 2c 20 02, 0x02, 0x02,
14a0: 30 78 30 32 2c 20 30 78 30 32 2c 20 30 78 30 32 0x02, 0x02, 0x02
14b0: 2c 20 20 2f 2a 20 35 30 2e 2e 35 37 20 20 20 20 , /* 50..57
14c0: 50 51 52 53 54 55 56 57 20 2a 2f 0a 20 20 30 78 PQRSTUVW */. 0x
14d0: 30 32 2c 20 30 78 30 32 2c 20 30 78 30 32 2c 20 02, 0x02, 0x02,
14e0: 30 78 38 30 2c 20 30 78 30 30 2c 20 30 78 30 30 0x80, 0x00, 0x00
14f0: 2c 20 30 78 30 30 2c 20 30 78 34 30 2c 20 20 2f , 0x00, 0x40, /
1500: 2a 20 35 38 2e 2e 35 66 20 20 20 20 58 59 5a 5b * 58..5f XYZ[
1510: 5c 5d 5e 5f 20 2a 2f 0a 20 20 30 78 38 30 2c 20 \]^_ */. 0x80,
1520: 30 78 32 61 2c 20 30 78 32 61 2c 20 30 78 32 61 0x2a, 0x2a, 0x2a
1530: 2c 20 30 78 32 61 2c 20 30 78 32 61 2c 20 30 78 , 0x2a, 0x2a, 0x
1540: 32 61 2c 20 30 78 32 32 2c 20 20 2f 2a 20 36 30 2a, 0x22, /* 60
1550: 2e 2e 36 37 20 20 20 20 60 61 62 63 64 65 66 67 ..67 `abcdefg
1560: 20 2a 2f 0a 20 20 30 78 32 32 2c 20 30 78 32 32 */. 0x22, 0x22
1570: 2c 20 30 78 32 32 2c 20 30 78 32 32 2c 20 30 78 , 0x22, 0x22, 0x
1580: 32 32 2c 20 30 78 32 32 2c 20 30 78 32 32 2c 20 22, 0x22, 0x22,
1590: 30 78 32 32 2c 20 20 2f 2a 20 36 38 2e 2e 36 66 0x22, /* 68..6f
15a0: 20 20 20 20 68 69 6a 6b 6c 6d 6e 6f 20 2a 2f 0a hijklmno */.
15b0: 20 20 30 78 32 32 2c 20 30 78 32 32 2c 20 30 78 0x22, 0x22, 0x
15c0: 32 32 2c 20 30 78 32 32 2c 20 30 78 32 32 2c 20 22, 0x22, 0x22,
15d0: 30 78 32 32 2c 20 30 78 32 32 2c 20 30 78 32 32 0x22, 0x22, 0x22
15e0: 2c 20 20 2f 2a 20 37 30 2e 2e 37 37 20 20 20 20 , /* 70..77
15f0: 70 71 72 73 74 75 76 77 20 2a 2f 0a 20 20 30 78 pqrstuvw */. 0x
1600: 32 32 2c 20 30 78 32 32 2c 20 30 78 32 32 2c 20 22, 0x22, 0x22,
1610: 30 78 30 30 2c 20 30 78 30 30 2c 20 30 78 30 30 0x00, 0x00, 0x00
1620: 2c 20 30 78 30 30 2c 20 30 78 30 30 2c 20 20 2f , 0x00, 0x00, /
1630: 2a 20 37 38 2e 2e 37 66 20 20 20 20 78 79 7a 7b * 78..7f xyz{
1640: 7c 7d 7e 2e 20 2a 2f 0a 0a 20 20 30 78 34 30 2c |}~. */.. 0x40,
1650: 20 30 78 34 30 2c 20 30 78 34 30 2c 20 30 78 34 0x40, 0x40, 0x4
1660: 30 2c 20 30 78 34 30 2c 20 30 78 34 30 2c 20 30 0, 0x40, 0x40, 0
1670: 78 34 30 2c 20 30 78 34 30 2c 20 20 2f 2a 20 38 x40, 0x40, /* 8
1680: 30 2e 2e 38 37 20 20 20 20 2e 2e 2e 2e 2e 2e 2e 0..87 .......
1690: 2e 20 2a 2f 0a 20 20 30 78 34 30 2c 20 30 78 34 . */. 0x40, 0x4
16a0: 30 2c 20 30 78 34 30 2c 20 30 78 34 30 2c 20 30 0, 0x40, 0x40, 0
16b0: 78 34 30 2c 20 30 78 34 30 2c 20 30 78 34 30 2c x40, 0x40, 0x40,
16c0: 20 30 78 34 30 2c 20 20 2f 2a 20 38 38 2e 2e 38 0x40, /* 88..8
16d0: 66 20 20 20 20 2e 2e 2e 2e 2e 2e 2e 2e 20 2a 2f f ........ */
16e0: 0a 20 20 30 78 34 30 2c 20 30 78 34 30 2c 20 30 . 0x40, 0x40, 0
16f0: 78 34 30 2c 20 30 78 34 30 2c 20 30 78 34 30 2c x40, 0x40, 0x40,
1700: 20 30 78 34 30 2c 20 30 78 34 30 2c 20 30 78 34 0x40, 0x40, 0x4
1710: 30 2c 20 20 2f 2a 20 39 30 2e 2e 39 37 20 20 20 0, /* 90..97
1720: 20 2e 2e 2e 2e 2e 2e 2e 2e 20 2a 2f 0a 20 20 30 ........ */. 0
1730: 78 34 30 2c 20 30 78 34 30 2c 20 30 78 34 30 2c x40, 0x40, 0x40,
1740: 20 30 78 34 30 2c 20 30 78 34 30 2c 20 30 78 34 0x40, 0x40, 0x4
1750: 30 2c 20 30 78 34 30 2c 20 30 78 34 30 2c 20 20 0, 0x40, 0x40,
1760: 2f 2a 20 39 38 2e 2e 39 66 20 20 20 20 2e 2e 2e /* 98..9f ...
1770: 2e 2e 2e 2e 2e 20 2a 2f 0a 20 20 30 78 34 30 2c ..... */. 0x40,
1780: 20 30 78 34 30 2c 20 30 78 34 30 2c 20 30 78 34 0x40, 0x40, 0x4
1790: 30 2c 20 30 78 34 30 2c 20 30 78 34 30 2c 20 30 0, 0x40, 0x40, 0
17a0: 78 34 30 2c 20 30 78 34 30 2c 20 20 2f 2a 20 61 x40, 0x40, /* a
17b0: 30 2e 2e 61 37 20 20 20 20 2e 2e 2e 2e 2e 2e 2e 0..a7 .......
17c0: 2e 20 2a 2f 0a 20 20 30 78 34 30 2c 20 30 78 34 . */. 0x40, 0x4
17d0: 30 2c 20 30 78 34 30 2c 20 30 78 34 30 2c 20 30 0, 0x40, 0x40, 0
17e0: 78 34 30 2c 20 30 78 34 30 2c 20 30 78 34 30 2c x40, 0x40, 0x40,
17f0: 20 30 78 34 30 2c 20 20 2f 2a 20 61 38 2e 2e 61 0x40, /* a8..a
1800: 66 20 20 20 20 2e 2e 2e 2e 2e 2e 2e 2e 20 2a 2f f ........ */
1810: 0a 20 20 30 78 34 30 2c 20 30 78 34 30 2c 20 30 . 0x40, 0x40, 0
1820: 78 34 30 2c 20 30 78 34 30 2c 20 30 78 34 30 2c x40, 0x40, 0x40,
1830: 20 30 78 34 30 2c 20 30 78 34 30 2c 20 30 78 34 0x40, 0x40, 0x4
1840: 30 2c 20 20 2f 2a 20 62 30 2e 2e 62 37 20 20 20 0, /* b0..b7
1850: 20 2e 2e 2e 2e 2e 2e 2e 2e 20 2a 2f 0a 20 20 30 ........ */. 0
1860: 78 34 30 2c 20 30 78 34 30 2c 20 30 78 34 30 2c x40, 0x40, 0x40,
1870: 20 30 78 34 30 2c 20 30 78 34 30 2c 20 30 78 34 0x40, 0x40, 0x4
1880: 30 2c 20 30 78 34 30 2c 20 30 78 34 30 2c 20 20 0, 0x40, 0x40,
1890: 2f 2a 20 62 38 2e 2e 62 66 20 20 20 20 2e 2e 2e /* b8..bf ...
18a0: 2e 2e 2e 2e 2e 20 2a 2f 0a 0a 20 20 30 78 34 30 ..... */.. 0x40
18b0: 2c 20 30 78 34 30 2c 20 30 78 34 30 2c 20 30 78 , 0x40, 0x40, 0x
18c0: 34 30 2c 20 30 78 34 30 2c 20 30 78 34 30 2c 20 40, 0x40, 0x40,
18d0: 30 78 34 30 2c 20 30 78 34 30 2c 20 20 2f 2a 20 0x40, 0x40, /*
18e0: 63 30 2e 2e 63 37 20 20 20 20 2e 2e 2e 2e 2e 2e c0..c7 ......
18f0: 2e 2e 20 2a 2f 0a 20 20 30 78 34 30 2c 20 30 78 .. */. 0x40, 0x
1900: 34 30 2c 20 30 78 34 30 2c 20 30 78 34 30 2c 20 40, 0x40, 0x40,
1910: 30 78 34 30 2c 20 30 78 34 30 2c 20 30 78 34 30 0x40, 0x40, 0x40
1920: 2c 20 30 78 34 30 2c 20 20 2f 2a 20 63 38 2e 2e , 0x40, /* c8..
1930: 63 66 20 20 20 20 2e 2e 2e 2e 2e 2e 2e 2e 20 2a cf ........ *
1940: 2f 0a 20 20 30 78 34 30 2c 20 30 78 34 30 2c 20 /. 0x40, 0x40,
1950: 30 78 34 30 2c 20 30 78 34 30 2c 20 30 78 34 30 0x40, 0x40, 0x40
1960: 2c 20 30 78 34 30 2c 20 30 78 34 30 2c 20 30 78 , 0x40, 0x40, 0x
1970: 34 30 2c 20 20 2f 2a 20 64 30 2e 2e 64 37 20 20 40, /* d0..d7
1980: 20 20 2e 2e 2e 2e 2e 2e 2e 2e 20 2a 2f 0a 20 20 ........ */.
1990: 30 78 34 30 2c 20 30 78 34 30 2c 20 30 78 34 30 0x40, 0x40, 0x40
19a0: 2c 20 30 78 34 30 2c 20 30 78 34 30 2c 20 30 78 , 0x40, 0x40, 0x
19b0: 34 30 2c 20 30 78 34 30 2c 20 30 78 34 30 2c 20 40, 0x40, 0x40,
19c0: 20 2f 2a 20 64 38 2e 2e 64 66 20 20 20 20 2e 2e /* d8..df ..
19d0: 2e 2e 2e 2e 2e 2e 20 2a 2f 0a 20 20 30 78 34 30 ...... */. 0x40
19e0: 2c 20 30 78 34 30 2c 20 30 78 34 30 2c 20 30 78 , 0x40, 0x40, 0x
19f0: 34 30 2c 20 30 78 34 30 2c 20 30 78 34 30 2c 20 40, 0x40, 0x40,
1a00: 30 78 34 30 2c 20 30 78 34 30 2c 20 20 2f 2a 20 0x40, 0x40, /*
1a10: 65 30 2e 2e 65 37 20 20 20 20 2e 2e 2e 2e 2e 2e e0..e7 ......
1a20: 2e 2e 20 2a 2f 0a 20 20 30 78 34 30 2c 20 30 78 .. */. 0x40, 0x
1a30: 34 30 2c 20 30 78 34 30 2c 20 30 78 34 30 2c 20 40, 0x40, 0x40,
1a40: 30 78 34 30 2c 20 30 78 34 30 2c 20 30 78 34 30 0x40, 0x40, 0x40
1a50: 2c 20 30 78 34 30 2c 20 20 2f 2a 20 65 38 2e 2e , 0x40, /* e8..
1a60: 65 66 20 20 20 20 2e 2e 2e 2e 2e 2e 2e 2e 20 2a ef ........ *
1a70: 2f 0a 20 20 30 78 34 30 2c 20 30 78 34 30 2c 20 /. 0x40, 0x40,
1a80: 30 78 34 30 2c 20 30 78 34 30 2c 20 30 78 34 30 0x40, 0x40, 0x40
1a90: 2c 20 30 78 34 30 2c 20 30 78 34 30 2c 20 30 78 , 0x40, 0x40, 0x
1aa0: 34 30 2c 20 20 2f 2a 20 66 30 2e 2e 66 37 20 20 40, /* f0..f7
1ab0: 20 20 2e 2e 2e 2e 2e 2e 2e 2e 20 2a 2f 0a 20 20 ........ */.
1ac0: 30 78 34 30 2c 20 30 78 34 30 2c 20 30 78 34 30 0x40, 0x40, 0x40
1ad0: 2c 20 30 78 34 30 2c 20 30 78 34 30 2c 20 30 78 , 0x40, 0x40, 0x
1ae0: 34 30 2c 20 30 78 34 30 2c 20 30 78 34 30 20 20 40, 0x40, 0x40
1af0: 20 2f 2a 20 66 38 2e 2e 66 66 20 20 20 20 2e 2e /* f8..ff ..
1b00: 2e 2e 2e 2e 2e 2e 20 2a 2f 0a 7d 3b 0a 23 65 6e ...... */.};.#en
1b10: 64 69 66 0a 0a 2f 2a 20 45 56 49 44 45 4e 43 45 dif../* EVIDENCE
1b20: 2d 4f 46 3a 20 52 2d 30 32 39 38 32 2d 33 34 37 -OF: R-02982-347
1b30: 33 36 20 49 6e 20 6f 72 64 65 72 20 74 6f 20 6d 36 In order to m
1b40: 61 69 6e 74 61 69 6e 20 66 75 6c 6c 20 62 61 63 aintain full bac
1b50: 6b 77 61 72 64 73 0a 2a 2a 20 63 6f 6d 70 61 74 kwards.** compat
1b60: 69 62 69 6c 69 74 79 20 66 6f 72 20 6c 65 67 61 ibility for lega
1b70: 63 79 20 61 70 70 6c 69 63 61 74 69 6f 6e 73 2c cy applications,
1b80: 20 74 68 65 20 55 52 49 20 66 69 6c 65 6e 61 6d the URI filenam
1b90: 65 20 63 61 70 61 62 69 6c 69 74 79 20 69 73 0a e capability is.
1ba0: 2a 2a 20 64 69 73 61 62 6c 65 64 20 62 79 20 64 ** disabled by d
1bb0: 65 66 61 75 6c 74 2e 0a 2a 2a 0a 2a 2a 20 45 56 efault..**.** EV
1bc0: 49 44 45 4e 43 45 2d 4f 46 3a 20 52 2d 33 38 37 IDENCE-OF: R-387
1bd0: 39 39 2d 30 38 33 37 33 20 55 52 49 20 66 69 6c 99-08373 URI fil
1be0: 65 6e 61 6d 65 73 20 63 61 6e 20 62 65 20 65 6e enames can be en
1bf0: 61 62 6c 65 64 20 6f 72 20 64 69 73 61 62 6c 65 abled or disable
1c00: 64 0a 2a 2a 20 75 73 69 6e 67 20 74 68 65 20 53 d.** using the S
1c10: 51 4c 49 54 45 5f 55 53 45 5f 55 52 49 3d 31 20 QLITE_USE_URI=1
1c20: 6f 72 20 53 51 4c 49 54 45 5f 55 53 45 5f 55 52 or SQLITE_USE_UR
1c30: 49 3d 30 20 63 6f 6d 70 69 6c 65 2d 74 69 6d 65 I=0 compile-time
1c40: 20 6f 70 74 69 6f 6e 73 2e 0a 2a 2a 0a 2a 2a 20 options..**.**
1c50: 45 56 49 44 45 4e 43 45 2d 4f 46 3a 20 52 2d 34 EVIDENCE-OF: R-4
1c60: 33 36 34 32 2d 35 36 33 30 36 20 42 79 20 64 65 3642-56306 By de
1c70: 66 61 75 6c 74 2c 20 55 52 49 20 68 61 6e 64 6c fault, URI handl
1c80: 69 6e 67 20 69 73 20 67 6c 6f 62 61 6c 6c 79 0a ing is globally.
1c90: 2a 2a 20 64 69 73 61 62 6c 65 64 2e 20 54 68 65 ** disabled. The
1ca0: 20 64 65 66 61 75 6c 74 20 76 61 6c 75 65 20 6d default value m
1cb0: 61 79 20 62 65 20 63 68 61 6e 67 65 64 20 62 79 ay be changed by
1cc0: 20 63 6f 6d 70 69 6c 69 6e 67 20 77 69 74 68 20 compiling with
1cd0: 74 68 65 0a 2a 2a 20 53 51 4c 49 54 45 5f 55 53 the.** SQLITE_US
1ce0: 45 5f 55 52 49 20 73 79 6d 62 6f 6c 20 64 65 66 E_URI symbol def
1cf0: 69 6e 65 64 2e 0a 2a 2a 0a 2a 2a 20 55 52 49 20 ined..**.** URI
1d00: 66 69 6c 65 6e 61 6d 65 73 20 61 72 65 20 65 6e filenames are en
1d10: 61 62 6c 65 64 20 62 79 20 64 65 66 61 75 6c 74 abled by default
1d20: 20 69 66 20 53 51 4c 49 54 45 5f 48 41 53 5f 43 if SQLITE_HAS_C
1d30: 4f 44 45 43 20 69 73 0a 2a 2a 20 65 6e 61 62 6c ODEC is.** enabl
1d40: 65 64 2e 0a 2a 2f 0a 23 69 66 6e 64 65 66 20 53 ed..*/.#ifndef S
1d50: 51 4c 49 54 45 5f 55 53 45 5f 55 52 49 0a 23 20 QLITE_USE_URI.#
1d60: 69 66 64 65 66 20 53 51 4c 49 54 45 5f 48 41 53 ifdef SQLITE_HAS
1d70: 5f 43 4f 44 45 43 0a 23 20 20 64 65 66 69 6e 65 _CODEC.# define
1d80: 20 53 51 4c 49 54 45 5f 55 53 45 5f 55 52 49 20 SQLITE_USE_URI
1d90: 31 0a 23 20 65 6c 73 65 0a 23 20 20 64 65 66 69 1.# else.# defi
1da0: 6e 65 20 53 51 4c 49 54 45 5f 55 53 45 5f 55 52 ne SQLITE_USE_UR
1db0: 49 20 30 0a 23 20 65 6e 64 69 66 0a 23 65 6e 64 I 0.# endif.#end
1dc0: 69 66 0a 0a 2f 2a 20 45 56 49 44 45 4e 43 45 2d if../* EVIDENCE-
1dd0: 4f 46 3a 20 52 2d 33 38 37 32 30 2d 31 38 31 32 OF: R-38720-1812
1de0: 37 20 54 68 65 20 64 65 66 61 75 6c 74 20 73 65 7 The default se
1df0: 74 74 69 6e 67 20 69 73 20 64 65 74 65 72 6d 69 tting is determi
1e00: 6e 65 64 20 62 79 20 74 68 65 0a 2a 2a 20 53 51 ned by the.** SQ
1e10: 4c 49 54 45 5f 41 4c 4c 4f 57 5f 43 4f 56 45 52 LITE_ALLOW_COVER
1e20: 49 4e 47 5f 49 4e 44 45 58 5f 53 43 41 4e 20 63 ING_INDEX_SCAN c
1e30: 6f 6d 70 69 6c 65 2d 74 69 6d 65 20 6f 70 74 69 ompile-time opti
1e40: 6f 6e 2c 20 6f 72 20 69 73 20 22 6f 6e 22 20 69 on, or is "on" i
1e50: 66 0a 2a 2a 20 74 68 61 74 20 63 6f 6d 70 69 6c f.** that compil
1e60: 65 2d 74 69 6d 65 20 6f 70 74 69 6f 6e 20 69 73 e-time option is
1e70: 20 6f 6d 69 74 74 65 64 2e 0a 2a 2f 0a 23 69 66 omitted..*/.#if
1e80: 6e 64 65 66 20 53 51 4c 49 54 45 5f 41 4c 4c 4f ndef SQLITE_ALLO
1e90: 57 5f 43 4f 56 45 52 49 4e 47 5f 49 4e 44 45 58 W_COVERING_INDEX
1ea0: 5f 53 43 41 4e 0a 23 20 64 65 66 69 6e 65 20 53 _SCAN.# define S
1eb0: 51 4c 49 54 45 5f 41 4c 4c 4f 57 5f 43 4f 56 45 QLITE_ALLOW_COVE
1ec0: 52 49 4e 47 5f 49 4e 44 45 58 5f 53 43 41 4e 20 RING_INDEX_SCAN
1ed0: 31 0a 23 65 6e 64 69 66 0a 0a 2f 2a 20 54 68 65 1.#endif../* The
1ee0: 20 6d 69 6e 69 6d 75 6d 20 50 4d 41 20 73 69 7a minimum PMA siz
1ef0: 65 20 69 73 20 73 65 74 20 74 6f 20 74 68 69 73 e is set to this
1f00: 20 76 61 6c 75 65 20 6d 75 6c 74 69 70 6c 69 65 value multiplie
1f10: 64 20 62 79 20 74 68 65 20 64 61 74 61 62 61 73 d by the databas
1f20: 65 0a 2a 2a 20 70 61 67 65 20 73 69 7a 65 20 69 e.** page size i
1f30: 6e 20 62 79 74 65 73 2e 0a 2a 2f 0a 23 69 66 6e n bytes..*/.#ifn
1f40: 64 65 66 20 53 51 4c 49 54 45 5f 53 4f 52 54 45 def SQLITE_SORTE
1f50: 52 5f 50 4d 41 53 5a 0a 23 20 64 65 66 69 6e 65 R_PMASZ.# define
1f60: 20 53 51 4c 49 54 45 5f 53 4f 52 54 45 52 5f 50 SQLITE_SORTER_P
1f70: 4d 41 53 5a 20 32 35 30 0a 23 65 6e 64 69 66 0a MASZ 250.#endif.
1f80: 0a 2f 2a 20 53 74 61 74 65 6d 65 6e 74 20 6a 6f ./* Statement jo
1f90: 75 72 6e 61 6c 73 20 73 70 69 6c 6c 20 74 6f 20 urnals spill to
1fa0: 64 69 73 6b 20 77 68 65 6e 20 74 68 65 69 72 20 disk when their
1fb0: 73 69 7a 65 20 65 78 63 65 65 64 73 20 74 68 65 size exceeds the
1fc0: 20 66 6f 6c 6c 6f 77 69 6e 67 0a 2a 2a 20 74 68 following.** th
1fd0: 72 65 73 68 6f 6c 64 20 28 69 6e 20 62 79 74 65 reshold (in byte
1fe0: 73 29 2e 20 30 20 6d 65 61 6e 73 20 74 68 61 74 s). 0 means that
1ff0: 20 73 74 61 74 65 6d 65 6e 74 20 6a 6f 75 72 6e statement journ
2000: 61 6c 73 20 61 72 65 20 63 72 65 61 74 65 64 20 als are created
2010: 61 6e 64 0a 2a 2a 20 77 72 69 74 74 65 6e 20 74 and.** written t
2020: 6f 20 64 69 73 6b 20 69 6d 6d 65 64 69 61 74 65 o disk immediate
2030: 6c 79 20 28 74 68 65 20 64 65 66 61 75 6c 74 20 ly (the default
2040: 62 65 68 61 76 69 6f 72 20 66 6f 72 20 53 51 4c behavior for SQL
2050: 69 74 65 20 76 65 72 73 69 6f 6e 73 0a 2a 2a 20 ite versions.**
2060: 62 65 66 6f 72 65 20 33 2e 31 32 2e 30 29 2e 20 before 3.12.0).
2070: 20 2d 31 20 6d 65 61 6e 73 20 61 6c 77 61 79 73 -1 means always
2080: 20 6b 65 65 70 20 74 68 65 20 65 6e 74 69 72 65 keep the entire
2090: 20 73 74 61 74 65 6d 65 6e 74 20 6a 6f 75 72 6e statement journ
20a0: 61 6c 20 69 6e 0a 2a 2a 20 6d 65 6d 6f 72 79 2e al in.** memory.
20b0: 20 20 28 54 68 65 20 73 74 61 74 65 6d 65 6e 74 (The statement
20c0: 20 6a 6f 75 72 6e 61 6c 20 69 73 20 61 6c 73 6f journal is also
20d0: 20 61 6c 77 61 79 73 20 68 65 6c 64 20 65 6e 74 always held ent
20e0: 69 72 65 6c 79 20 69 6e 20 6d 65 6d 6f 72 79 0a irely in memory.
20f0: 2a 2a 20 69 66 20 6a 6f 75 72 6e 61 6c 5f 6d 6f ** if journal_mo
2100: 64 65 3d 4d 45 4d 4f 52 59 20 6f 72 20 69 66 20 de=MEMORY or if
2110: 74 65 6d 70 5f 73 74 6f 72 65 3d 4d 45 4d 4f 52 temp_store=MEMOR
2120: 59 2c 20 72 65 67 61 72 64 6c 65 73 73 20 6f 66 Y, regardless of
2130: 20 74 68 69 73 0a 2a 2a 20 73 65 74 74 69 6e 67 this.** setting
2140: 2e 29 0a 2a 2f 0a 23 69 66 6e 64 65 66 20 53 51 .).*/.#ifndef SQ
2150: 4c 49 54 45 5f 53 54 4d 54 4a 52 4e 4c 5f 53 50 LITE_STMTJRNL_SP
2160: 49 4c 4c 20 0a 23 20 64 65 66 69 6e 65 20 53 51 ILL .# define SQ
2170: 4c 49 54 45 5f 53 54 4d 54 4a 52 4e 4c 5f 53 50 LITE_STMTJRNL_SP
2180: 49 4c 4c 20 28 36 34 2a 31 30 32 34 29 0a 23 65 ILL (64*1024).#e
2190: 6e 64 69 66 0a 0a 2f 2a 0a 2a 2a 20 54 68 65 20 ndif../*.** The
21a0: 64 65 66 61 75 6c 74 20 6c 6f 6f 6b 61 73 69 64 default lookasid
21b0: 65 2d 63 6f 6e 66 69 67 75 72 61 74 69 6f 6e 2c e-configuration,
21c0: 20 74 68 65 20 66 6f 72 6d 61 74 20 22 53 5a 2c the format "SZ,
21d0: 4e 22 2e 20 20 53 5a 20 69 73 20 74 68 65 0a 2a N". SZ is the.*
21e0: 2a 20 6e 75 6d 62 65 72 20 6f 66 20 62 79 74 65 * number of byte
21f0: 73 20 69 6e 20 65 61 63 68 20 6c 6f 6f 6b 61 73 s in each lookas
2200: 69 64 65 20 73 6c 6f 74 20 28 73 68 6f 75 6c 64 ide slot (should
2210: 20 62 65 20 61 20 6d 75 6c 74 69 70 6c 65 20 6f be a multiple o
2220: 66 20 38 29 0a 2a 2a 20 61 6e 64 20 4e 20 69 73 f 8).** and N is
2230: 20 74 68 65 20 6e 75 6d 62 65 72 20 6f 66 20 73 the number of s
2240: 6c 6f 74 73 2e 20 20 54 68 65 20 6c 6f 6f 6b 61 lots. The looka
2250: 73 69 64 65 2d 63 6f 6e 66 69 67 75 72 61 74 69 side-configurati
2260: 6f 6e 20 63 61 6e 20 62 65 0a 2a 2a 20 63 68 61 on can be.** cha
2270: 6e 67 65 64 20 61 73 20 73 74 61 72 74 2d 74 69 nged as start-ti
2280: 6d 65 20 75 73 69 6e 67 20 73 71 6c 69 74 65 33 me using sqlite3
2290: 5f 63 6f 6e 66 69 67 28 53 51 4c 49 54 45 5f 43 _config(SQLITE_C
22a0: 4f 4e 46 49 47 5f 4c 4f 4f 4b 41 53 49 44 45 29 ONFIG_LOOKASIDE)
22b0: 0a 2a 2a 20 6f 72 20 61 74 20 72 75 6e 2d 74 69 .** or at run-ti
22c0: 6d 65 20 66 6f 72 20 61 6e 20 69 6e 64 69 76 69 me for an indivi
22d0: 64 75 61 6c 20 64 61 74 61 62 61 73 65 20 63 6f dual database co
22e0: 6e 6e 65 63 74 69 6f 6e 20 75 73 69 6e 67 0a 2a nnection using.*
22f0: 2a 20 73 71 6c 69 74 65 33 5f 64 62 5f 63 6f 6e * sqlite3_db_con
2300: 66 69 67 28 64 62 2c 20 53 51 4c 49 54 45 5f 44 fig(db, SQLITE_D
2310: 42 43 4f 4e 46 49 47 5f 4c 4f 4f 4b 41 53 49 44 BCONFIG_LOOKASID
2320: 45 29 3b 0a 2a 2f 0a 23 69 66 6e 64 65 66 20 53 E);.*/.#ifndef S
2330: 51 4c 49 54 45 5f 44 45 46 41 55 4c 54 5f 4c 4f QLITE_DEFAULT_LO
2340: 4f 4b 41 53 49 44 45 0a 23 20 64 65 66 69 6e 65 OKASIDE.# define
2350: 20 53 51 4c 49 54 45 5f 44 45 46 41 55 4c 54 5f SQLITE_DEFAULT_
2360: 4c 4f 4f 4b 41 53 49 44 45 20 31 32 30 30 2c 31 LOOKASIDE 1200,1
2370: 30 30 0a 23 65 6e 64 69 66 0a 0a 0a 2f 2a 0a 2a 00.#endif.../*.*
2380: 2a 20 54 68 65 20 66 6f 6c 6c 6f 77 69 6e 67 20 * The following
2390: 73 69 6e 67 6c 65 74 6f 6e 20 63 6f 6e 74 61 69 singleton contai
23a0: 6e 73 20 74 68 65 20 67 6c 6f 62 61 6c 20 63 6f ns the global co
23b0: 6e 66 69 67 75 72 61 74 69 6f 6e 20 66 6f 72 0a nfiguration for.
23c0: 2a 2a 20 74 68 65 20 53 51 4c 69 74 65 20 6c 69 ** the SQLite li
23d0: 62 72 61 72 79 2e 0a 2a 2f 0a 53 51 4c 49 54 45 brary..*/.SQLITE
23e0: 5f 57 53 44 20 73 74 72 75 63 74 20 53 71 6c 69 _WSD struct Sqli
23f0: 74 65 33 43 6f 6e 66 69 67 20 73 71 6c 69 74 65 te3Config sqlite
2400: 33 43 6f 6e 66 69 67 20 3d 20 7b 0a 20 20 20 53 3Config = {. S
2410: 51 4c 49 54 45 5f 44 45 46 41 55 4c 54 5f 4d 45 QLITE_DEFAULT_ME
2420: 4d 53 54 41 54 55 53 2c 20 20 2f 2a 20 62 4d 65 MSTATUS, /* bMe
2430: 6d 73 74 61 74 20 2a 2f 0a 20 20 20 31 2c 20 20 mstat */. 1,
2440: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
2450: 20 20 20 20 20 20 20 2f 2a 20 62 43 6f 72 65 4d /* bCoreM
2460: 75 74 65 78 20 2a 2f 0a 20 20 20 53 51 4c 49 54 utex */. SQLIT
2470: 45 5f 54 48 52 45 41 44 53 41 46 45 3d 3d 31 2c E_THREADSAFE==1,
2480: 20 20 20 20 20 20 2f 2a 20 62 46 75 6c 6c 4d 75 /* bFullMu
2490: 74 65 78 20 2a 2f 0a 20 20 20 53 51 4c 49 54 45 tex */. SQLITE
24a0: 5f 55 53 45 5f 55 52 49 2c 20 20 20 20 20 20 20 _USE_URI,
24b0: 20 20 20 20 20 2f 2a 20 62 4f 70 65 6e 55 72 69 /* bOpenUri
24c0: 20 2a 2f 0a 20 20 20 53 51 4c 49 54 45 5f 41 4c */. SQLITE_AL
24d0: 4c 4f 57 5f 43 4f 56 45 52 49 4e 47 5f 49 4e 44 LOW_COVERING_IND
24e0: 45 58 5f 53 43 41 4e 2c 20 20 20 2f 2a 20 62 55 EX_SCAN, /* bU
24f0: 73 65 43 69 73 20 2a 2f 0a 20 20 20 30 2c 20 20 seCis */. 0,
2500: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
2510: 20 20 20 20 20 20 20 2f 2a 20 62 53 6d 61 6c 6c /* bSmall
2520: 4d 61 6c 6c 6f 63 20 2a 2f 0a 20 20 20 30 78 37 Malloc */. 0x7
2530: 66 66 66 66 66 66 65 2c 20 20 20 20 20 20 20 20 ffffffe,
2540: 20 20 20 20 20 20 20 20 2f 2a 20 6d 78 53 74 72 /* mxStr
2550: 6c 65 6e 20 2a 2f 0a 20 20 20 30 2c 20 20 20 20 len */. 0,
2560: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
2570: 20 20 20 20 20 2f 2a 20 6e 65 76 65 72 43 6f 72 /* neverCor
2580: 72 75 70 74 20 2a 2f 0a 20 20 20 53 51 4c 49 54 rupt */. SQLIT
2590: 45 5f 44 45 46 41 55 4c 54 5f 4c 4f 4f 4b 41 53 E_DEFAULT_LOOKAS
25a0: 49 44 45 2c 20 20 2f 2a 20 73 7a 4c 6f 6f 6b 61 IDE, /* szLooka
25b0: 73 69 64 65 2c 20 6e 4c 6f 6f 6b 61 73 69 64 65 side, nLookaside
25c0: 20 2a 2f 0a 20 20 20 53 51 4c 49 54 45 5f 53 54 */. SQLITE_ST
25d0: 4d 54 4a 52 4e 4c 5f 53 50 49 4c 4c 2c 20 20 20 MTJRNL_SPILL,
25e0: 20 20 2f 2a 20 6e 53 74 6d 74 53 70 69 6c 6c 20 /* nStmtSpill
25f0: 2a 2f 0a 20 20 20 7b 30 2c 30 2c 30 2c 30 2c 30 */. {0,0,0,0,0
2600: 2c 30 2c 30 2c 30 7d 2c 20 20 20 20 20 20 20 20 ,0,0,0},
2610: 20 2f 2a 20 6d 20 2a 2f 0a 20 20 20 7b 30 2c 30 /* m */. {0,0
2620: 2c 30 2c 30 2c 30 2c 30 2c 30 2c 30 2c 30 7d 2c ,0,0,0,0,0,0,0},
2630: 20 20 20 20 20 20 20 2f 2a 20 6d 75 74 65 78 20 /* mutex
2640: 2a 2f 0a 20 20 20 7b 30 2c 30 2c 30 2c 30 2c 30 */. {0,0,0,0,0
2650: 2c 30 2c 30 2c 30 2c 30 2c 30 2c 30 2c 30 2c 30 ,0,0,0,0,0,0,0,0
2660: 7d 2c 2f 2a 20 70 63 61 63 68 65 32 20 2a 2f 0a },/* pcache2 */.
2670: 20 20 20 28 76 6f 69 64 2a 29 30 2c 20 20 20 20 (void*)0,
2680: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2a /*
2690: 20 70 48 65 61 70 20 2a 2f 0a 20 20 20 30 2c 20 pHeap */. 0,
26a0: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
26b0: 20 20 20 20 20 20 20 20 2f 2a 20 6e 48 65 61 70 /* nHeap
26c0: 20 2a 2f 0a 20 20 20 30 2c 20 30 2c 20 20 20 20 */. 0, 0,
26d0: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
26e0: 20 20 2f 2a 20 6d 6e 48 65 61 70 2c 20 6d 78 48 /* mnHeap, mxH
26f0: 65 61 70 20 2a 2f 0a 20 20 20 53 51 4c 49 54 45 eap */. SQLITE
2700: 5f 44 45 46 41 55 4c 54 5f 4d 4d 41 50 5f 53 49 _DEFAULT_MMAP_SI
2710: 5a 45 2c 20 20 2f 2a 20 73 7a 4d 6d 61 70 20 2a ZE, /* szMmap *
2720: 2f 0a 20 20 20 53 51 4c 49 54 45 5f 4d 41 58 5f /. SQLITE_MAX_
2730: 4d 4d 41 50 5f 53 49 5a 45 2c 20 20 20 20 20 20 MMAP_SIZE,
2740: 2f 2a 20 6d 78 4d 6d 61 70 20 2a 2f 0a 20 20 20 /* mxMmap */.
2750: 28 76 6f 69 64 2a 29 30 2c 20 20 20 20 20 20 20 (void*)0,
2760: 20 20 20 20 20 20 20 20 20 20 20 2f 2a 20 70 50 /* pP
2770: 61 67 65 20 2a 2f 0a 20 20 20 30 2c 20 20 20 20 age */. 0,
2780: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
2790: 20 20 20 20 20 2f 2a 20 73 7a 50 61 67 65 20 2a /* szPage *
27a0: 2f 0a 20 20 20 53 51 4c 49 54 45 5f 44 45 46 41 /. SQLITE_DEFA
27b0: 55 4c 54 5f 50 43 41 43 48 45 5f 49 4e 49 54 53 ULT_PCACHE_INITS
27c0: 5a 2c 20 2f 2a 20 6e 50 61 67 65 20 2a 2f 0a 20 Z, /* nPage */.
27d0: 20 20 30 2c 20 20 20 20 20 20 20 20 20 20 20 20 0,
27e0: 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2a 20 /*
27f0: 6d 78 50 61 72 73 65 72 53 74 61 63 6b 20 2a 2f mxParserStack */
2800: 0a 20 20 20 30 2c 20 20 20 20 20 20 20 20 20 20 . 0,
2810: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f /
2820: 2a 20 73 68 61 72 65 64 43 61 63 68 65 45 6e 61 * sharedCacheEna
2830: 62 6c 65 64 20 2a 2f 0a 20 20 20 53 51 4c 49 54 bled */. SQLIT
2840: 45 5f 53 4f 52 54 45 52 5f 50 4d 41 53 5a 2c 20 E_SORTER_PMASZ,
2850: 20 20 20 20 20 20 2f 2a 20 73 7a 50 6d 61 20 2a /* szPma *
2860: 2f 0a 20 20 20 2f 2a 20 41 6c 6c 20 74 68 65 20 /. /* All the
2870: 72 65 73 74 20 73 68 6f 75 6c 64 20 61 6c 77 61 rest should alwa
2880: 79 73 20 62 65 20 69 6e 69 74 69 61 6c 69 7a 65 ys be initialize
2890: 64 20 74 6f 20 7a 65 72 6f 20 2a 2f 0a 20 20 20 d to zero */.
28a0: 30 2c 20 20 20 20 20 20 20 20 20 20 20 20 20 20 0,
28b0: 20 20 20 20 20 20 20 20 20 20 20 2f 2a 20 69 73 /* is
28c0: 49 6e 69 74 20 2a 2f 0a 20 20 20 30 2c 20 20 20 Init */. 0,
28d0: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
28e0: 20 20 20 20 20 20 2f 2a 20 69 6e 50 72 6f 67 72 /* inProgr
28f0: 65 73 73 20 2a 2f 0a 20 20 20 30 2c 20 20 20 20 ess */. 0,
2900: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
2910: 20 20 20 20 20 2f 2a 20 69 73 4d 75 74 65 78 49 /* isMutexI
2920: 6e 69 74 20 2a 2f 0a 20 20 20 30 2c 20 20 20 20 nit */. 0,
2930: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
2940: 20 20 20 20 20 2f 2a 20 69 73 4d 61 6c 6c 6f 63 /* isMalloc
2950: 49 6e 69 74 20 2a 2f 0a 20 20 20 30 2c 20 20 20 Init */. 0,
2960: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
2970: 20 20 20 20 20 20 2f 2a 20 69 73 50 43 61 63 68 /* isPCach
2980: 65 49 6e 69 74 20 2a 2f 0a 20 20 20 30 2c 20 20 eInit */. 0,
2990: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
29a0: 20 20 20 20 20 20 20 2f 2a 20 6e 52 65 66 49 6e /* nRefIn
29b0: 69 74 4d 75 74 65 78 20 2a 2f 0a 20 20 20 30 2c itMutex */. 0,
29c0: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
29d0: 20 20 20 20 20 20 20 20 20 2f 2a 20 70 49 6e 69 /* pIni
29e0: 74 4d 75 74 65 78 20 2a 2f 0a 20 20 20 30 2c 20 tMutex */. 0,
29f0: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
2a00: 20 20 20 20 20 20 20 20 2f 2a 20 78 4c 6f 67 20 /* xLog
2a10: 2a 2f 0a 20 20 20 30 2c 20 20 20 20 20 20 20 20 */. 0,
2a20: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
2a30: 20 2f 2a 20 70 4c 6f 67 41 72 67 20 2a 2f 0a 23 /* pLogArg */.#
2a40: 69 66 64 65 66 20 53 51 4c 49 54 45 5f 45 4e 41 ifdef SQLITE_ENA
2a50: 42 4c 45 5f 53 51 4c 4c 4f 47 0a 20 20 20 30 2c BLE_SQLLOG. 0,
2a60: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
2a70: 20 20 20 20 20 20 20 20 20 2f 2a 20 78 53 71 6c /* xSql
2a80: 6c 6f 67 20 2a 2f 0a 20 20 20 30 2c 20 20 20 20 log */. 0,
2a90: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
2aa0: 20 20 20 20 20 2f 2a 20 70 53 71 6c 6c 6f 67 41 /* pSqllogA
2ab0: 72 67 20 2a 2f 0a 23 65 6e 64 69 66 0a 23 69 66 rg */.#endif.#if
2ac0: 64 65 66 20 53 51 4c 49 54 45 5f 56 44 42 45 5f def SQLITE_VDBE_
2ad0: 43 4f 56 45 52 41 47 45 0a 20 20 20 30 2c 20 20 COVERAGE. 0,
2ae0: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
2af0: 20 20 20 20 20 20 20 2f 2a 20 78 56 64 62 65 42 /* xVdbeB
2b00: 72 61 6e 63 68 20 2a 2f 0a 20 20 20 30 2c 20 20 ranch */. 0,
2b10: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
2b20: 20 20 20 20 20 20 20 2f 2a 20 70 56 62 65 42 72 /* pVbeBr
2b30: 61 6e 63 68 41 72 67 20 2a 2f 0a 23 65 6e 64 69 anchArg */.#endi
2b40: 66 0a 23 69 66 6e 64 65 66 20 53 51 4c 49 54 45 f.#ifndef SQLITE
2b50: 5f 55 4e 54 45 53 54 41 42 4c 45 0a 20 20 20 30 _UNTESTABLE. 0
2b60: 2c 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ,
2b70: 20 20 20 20 20 20 20 20 20 20 2f 2a 20 78 54 65 /* xTe
2b80: 73 74 43 61 6c 6c 62 61 63 6b 20 2a 2f 0a 23 65 stCallback */.#e
2b90: 6e 64 69 66 0a 20 20 20 30 2c 20 20 20 20 20 20 ndif. 0,
2ba0: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
2bb0: 20 20 20 2f 2a 20 62 4c 6f 63 61 6c 74 69 6d 65 /* bLocaltime
2bc0: 46 61 75 6c 74 20 2a 2f 0a 20 20 20 30 78 37 66 Fault */. 0x7f
2bd0: 66 66 66 66 66 65 2c 20 20 20 20 20 20 20 20 20 fffffe,
2be0: 20 20 20 20 20 20 20 2f 2a 20 69 4f 6e 63 65 52 /* iOnceR
2bf0: 65 73 65 74 54 68 72 65 73 68 6f 6c 64 20 2a 2f esetThreshold */
2c00: 0a 20 20 20 53 51 4c 49 54 45 5f 44 45 46 41 55 . SQLITE_DEFAU
2c10: 4c 54 5f 53 4f 52 54 45 52 52 45 46 5f 53 49 5a LT_SORTERREF_SIZ
2c20: 45 20 20 20 2f 2a 20 73 7a 53 6f 72 74 65 72 52 E /* szSorterR
2c30: 65 66 20 2a 2f 0a 7d 3b 0a 0a 2f 2a 0a 2a 2a 20 ef */.};../*.**
2c40: 48 61 73 68 20 74 61 62 6c 65 20 66 6f 72 20 67 Hash table for g
2c50: 6c 6f 62 61 6c 20 66 75 6e 63 74 69 6f 6e 73 20 lobal functions
2c60: 2d 20 66 75 6e 63 74 69 6f 6e 73 20 63 6f 6d 6d - functions comm
2c70: 6f 6e 20 74 6f 20 61 6c 6c 0a 2a 2a 20 64 61 74 on to all.** dat
2c80: 61 62 61 73 65 20 63 6f 6e 6e 65 63 74 69 6f 6e abase connection
2c90: 73 2e 20 20 41 66 74 65 72 20 69 6e 69 74 69 61 s. After initia
2ca0: 6c 69 7a 61 74 69 6f 6e 2c 20 74 68 69 73 20 74 lization, this t
2cb0: 61 62 6c 65 20 69 73 0a 2a 2a 20 72 65 61 64 2d able is.** read-
2cc0: 6f 6e 6c 79 2e 0a 2a 2f 0a 46 75 6e 63 44 65 66 only..*/.FuncDef
2cd0: 48 61 73 68 20 73 71 6c 69 74 65 33 42 75 69 6c Hash sqlite3Buil
2ce0: 74 69 6e 46 75 6e 63 74 69 6f 6e 73 3b 0a 0a 2f tinFunctions;../
2cf0: 2a 0a 2a 2a 20 43 6f 6e 73 74 61 6e 74 20 74 6f *.** Constant to
2d00: 6b 65 6e 73 20 66 6f 72 20 76 61 6c 75 65 73 20 kens for values
2d10: 30 20 61 6e 64 20 31 2e 0a 2a 2f 0a 63 6f 6e 73 0 and 1..*/.cons
2d20: 74 20 54 6f 6b 65 6e 20 73 71 6c 69 74 65 33 49 t Token sqlite3I
2d30: 6e 74 54 6f 6b 65 6e 73 5b 5d 20 3d 20 7b 0a 20 ntTokens[] = {.
2d40: 20 20 7b 20 22 30 22 2c 20 31 20 7d 2c 0a 20 20 { "0", 1 },.
2d50: 20 7b 20 22 31 22 2c 20 31 20 7d 0a 7d 3b 0a 0a { "1", 1 }.};..
2d60: 23 69 66 64 65 66 20 56 44 42 45 5f 50 52 4f 46 #ifdef VDBE_PROF
2d70: 49 4c 45 0a 2f 2a 0a 2a 2a 20 54 68 65 20 66 6f ILE./*.** The fo
2d80: 6c 6c 6f 77 69 6e 67 20 70 65 72 66 6f 72 6d 61 llowing performa
2d90: 6e 63 65 20 63 6f 75 6e 74 65 72 20 63 61 6e 20 nce counter can
2da0: 62 65 20 75 73 65 64 20 69 6e 20 70 6c 61 63 65 be used in place
2db0: 20 6f 66 0a 2a 2a 20 73 71 6c 69 74 65 33 48 77 of.** sqlite3Hw
2dc0: 74 69 6d 65 28 29 20 66 6f 72 20 70 72 6f 66 69 time() for profi
2dd0: 6c 69 6e 67 2e 20 20 54 68 69 73 20 69 73 20 61 ling. This is a
2de0: 20 6e 6f 2d 6f 70 20 6f 6e 20 73 74 61 6e 64 61 no-op on standa
2df0: 72 64 20 62 75 69 6c 64 73 2e 0a 2a 2f 0a 73 71 rd builds..*/.sq
2e00: 6c 69 74 65 33 5f 75 69 6e 74 36 34 20 73 71 6c lite3_uint64 sql
2e10: 69 74 65 33 4e 50 72 6f 66 69 6c 65 43 6e 74 20 ite3NProfileCnt
2e20: 3d 20 30 3b 0a 23 65 6e 64 69 66 0a 0a 2f 2a 0a = 0;.#endif../*.
2e30: 2a 2a 20 54 68 65 20 76 61 6c 75 65 20 6f 66 20 ** The value of
2e40: 74 68 65 20 22 70 65 6e 64 69 6e 67 22 20 62 79 the "pending" by
2e50: 74 65 20 6d 75 73 74 20 62 65 20 30 78 34 30 30 te must be 0x400
2e60: 30 30 30 30 30 20 28 31 20 62 79 74 65 20 70 61 00000 (1 byte pa
2e70: 73 74 20 74 68 65 0a 2a 2a 20 31 2d 67 69 62 61 st the.** 1-giba
2e80: 62 79 74 65 20 62 6f 75 6e 64 61 72 79 29 20 69 byte boundary) i
2e90: 6e 20 61 20 63 6f 6d 70 61 74 69 62 6c 65 20 64 n a compatible d
2ea0: 61 74 61 62 61 73 65 2e 20 20 53 51 4c 69 74 65 atabase. SQLite
2eb0: 20 6e 65 76 65 72 20 75 73 65 73 0a 2a 2a 20 74 never uses.** t
2ec0: 68 65 20 64 61 74 61 62 61 73 65 20 70 61 67 65 he database page
2ed0: 20 74 68 61 74 20 63 6f 6e 74 61 69 6e 73 20 74 that contains t
2ee0: 68 65 20 70 65 6e 64 69 6e 67 20 62 79 74 65 2e he pending byte.
2ef0: 20 20 49 74 20 6e 65 76 65 72 20 61 74 74 65 6d It never attem
2f00: 70 74 73 0a 2a 2a 20 74 6f 20 72 65 61 64 20 6f pts.** to read o
2f10: 72 20 77 72 69 74 65 20 74 68 61 74 20 70 61 67 r write that pag
2f20: 65 2e 20 20 54 68 65 20 70 65 6e 64 69 6e 67 20 e. The pending
2f30: 62 79 74 65 20 70 61 67 65 20 69 73 20 73 65 74 byte page is set
2f40: 20 61 73 69 64 65 0a 2a 2a 20 66 6f 72 20 75 73 aside.** for us
2f50: 65 20 62 79 20 74 68 65 20 56 46 53 20 6c 61 79 e by the VFS lay
2f60: 65 72 73 20 61 73 20 73 70 61 63 65 20 66 6f 72 ers as space for
2f70: 20 6d 61 6e 61 67 69 6e 67 20 66 69 6c 65 20 6c managing file l
2f80: 6f 63 6b 73 2e 0a 2a 2a 0a 2a 2a 20 44 75 72 69 ocks..**.** Duri
2f90: 6e 67 20 74 65 73 74 69 6e 67 2c 20 69 74 20 69 ng testing, it i
2fa0: 73 20 6f 66 74 65 6e 20 64 65 73 69 72 61 62 6c s often desirabl
2fb0: 65 20 74 6f 20 6d 6f 76 65 20 74 68 65 20 70 65 e to move the pe
2fc0: 6e 64 69 6e 67 20 62 79 74 65 20 74 6f 0a 2a 2a nding byte to.**
2fd0: 20 61 20 64 69 66 66 65 72 65 6e 74 20 70 6f 73 a different pos
2fe0: 69 74 69 6f 6e 20 69 6e 20 74 68 65 20 66 69 6c ition in the fil
2ff0: 65 2e 20 20 54 68 69 73 20 61 6c 6c 6f 77 73 20 e. This allows
3000: 63 6f 64 65 20 74 68 61 74 20 68 61 73 20 74 6f code that has to
3010: 0a 2a 2a 20 64 65 61 6c 20 77 69 74 68 20 74 68 .** deal with th
3020: 65 20 70 65 6e 64 69 6e 67 20 62 79 74 65 20 74 e pending byte t
3030: 6f 20 72 75 6e 20 6f 6e 20 66 69 6c 65 73 20 74 o run on files t
3040: 68 61 74 20 61 72 65 20 6d 75 63 68 20 73 6d 61 hat are much sma
3050: 6c 6c 65 72 0a 2a 2a 20 74 68 61 6e 20 31 20 47 ller.** than 1 G
3060: 69 42 2e 20 20 54 68 65 20 73 71 6c 69 74 65 33 iB. The sqlite3
3070: 5f 74 65 73 74 5f 63 6f 6e 74 72 6f 6c 28 29 20 _test_control()
3080: 69 6e 74 65 72 66 61 63 65 20 63 61 6e 20 62 65 interface can be
3090: 20 75 73 65 64 20 74 6f 0a 2a 2a 20 6d 6f 76 65 used to.** move
30a0: 20 74 68 65 20 70 65 6e 64 69 6e 67 20 62 79 74 the pending byt
30b0: 65 2e 0a 2a 2a 0a 2a 2a 20 49 4d 50 4f 52 54 41 e..**.** IMPORTA
30c0: 4e 54 3a 20 20 43 68 61 6e 67 69 6e 67 20 74 68 NT: Changing th
30d0: 65 20 70 65 6e 64 69 6e 67 20 62 79 74 65 20 74 e pending byte t
30e0: 6f 20 61 6e 79 20 76 61 6c 75 65 20 6f 74 68 65 o any value othe
30f0: 72 20 74 68 61 6e 0a 2a 2a 20 30 78 34 30 30 30 r than.** 0x4000
3100: 30 30 30 30 20 72 65 73 75 6c 74 73 20 69 6e 20 0000 results in
3110: 61 6e 20 69 6e 63 6f 6d 70 61 74 69 62 6c 65 20 an incompatible
3120: 64 61 74 61 62 61 73 65 20 66 69 6c 65 20 66 6f database file fo
3130: 72 6d 61 74 21 0a 2a 2a 20 43 68 61 6e 67 69 6e rmat!.** Changin
3140: 67 20 74 68 65 20 70 65 6e 64 69 6e 67 20 62 79 g the pending by
3150: 74 65 20 64 75 72 69 6e 67 20 6f 70 65 72 61 74 te during operat
3160: 69 6f 6e 20 77 69 6c 6c 20 72 65 73 75 6c 74 20 ion will result
3170: 69 6e 20 75 6e 64 65 66 69 6e 65 64 0a 2a 2a 20 in undefined.**
3180: 61 6e 64 20 69 6e 63 6f 72 72 65 63 74 20 62 65 and incorrect be
3190: 68 61 76 69 6f 72 2e 0a 2a 2f 0a 23 69 66 6e 64 havior..*/.#ifnd
31a0: 65 66 20 53 51 4c 49 54 45 5f 4f 4d 49 54 5f 57 ef SQLITE_OMIT_W
31b0: 53 44 0a 69 6e 74 20 73 71 6c 69 74 65 33 50 65 SD.int sqlite3Pe
31c0: 6e 64 69 6e 67 42 79 74 65 20 3d 20 30 78 34 30 ndingByte = 0x40
31d0: 30 30 30 30 30 30 3b 0a 23 65 6e 64 69 66 0a 0a 000000;.#endif..
31e0: 23 69 6e 63 6c 75 64 65 20 22 6f 70 63 6f 64 65 #include "opcode
31f0: 73 2e 68 22 0a 2f 2a 0a 2a 2a 20 50 72 6f 70 65 s.h"./*.** Prope
3200: 72 74 69 65 73 20 6f 66 20 6f 70 63 6f 64 65 73 rties of opcodes
3210: 2e 20 20 54 68 65 20 4f 50 46 4c 47 5f 49 4e 49 . The OPFLG_INI
3220: 54 49 41 4c 49 5a 45 52 20 6d 61 63 72 6f 20 69 TIALIZER macro i
3230: 73 0a 2a 2a 20 63 72 65 61 74 65 64 20 62 79 20 s.** created by
3240: 6d 6b 6f 70 63 6f 64 65 68 2e 61 77 6b 20 64 75 mkopcodeh.awk du
3250: 72 69 6e 67 20 63 6f 6d 70 69 6c 61 74 69 6f 6e ring compilation
3260: 2e 20 20 44 61 74 61 20 69 73 20 6f 62 74 61 69 . Data is obtai
3270: 6e 65 64 0a 2a 2a 20 66 72 6f 6d 20 74 68 65 20 ned.** from the
3280: 63 6f 6d 6d 65 6e 74 73 20 66 6f 6c 6c 6f 77 69 comments followi
3290: 6e 67 20 74 68 65 20 22 63 61 73 65 20 4f 50 5f ng the "case OP_
32a0: 78 78 78 78 3a 22 20 73 74 61 74 65 6d 65 6e 74 xxxx:" statement
32b0: 73 20 69 6e 0a 2a 2a 20 74 68 65 20 76 64 62 65 s in.** the vdbe
32c0: 2e 63 20 66 69 6c 65 2e 20 20 0a 2a 2f 0a 63 6f .c file. .*/.co
32d0: 6e 73 74 20 75 6e 73 69 67 6e 65 64 20 63 68 61 nst unsigned cha
32e0: 72 20 73 71 6c 69 74 65 33 4f 70 63 6f 64 65 50 r sqlite3OpcodeP
32f0: 72 6f 70 65 72 74 79 5b 5d 20 3d 20 4f 50 46 4c roperty[] = OPFL
3300: 47 5f 49 4e 49 54 49 41 4c 49 5a 45 52 3b 0a 0a G_INITIALIZER;..
3310: 2f 2a 0a 2a 2a 20 4e 61 6d 65 20 6f 66 20 74 68 /*.** Name of th
3320: 65 20 64 65 66 61 75 6c 74 20 63 6f 6c 6c 61 74 e default collat
3330: 69 6e 67 20 73 65 71 75 65 6e 63 65 0a 2a 2f 0a ing sequence.*/.
3340: 63 6f 6e 73 74 20 63 68 61 72 20 73 71 6c 69 74 const char sqlit
3350: 65 33 53 74 72 42 49 4e 41 52 59 5b 5d 20 3d 20 e3StrBINARY[] =
3360: 22 42 49 4e 41 52 59 22 3b 0a "BINARY";.